Quick Linux tip Want to know how long a process has been running?...

@sysxplore
sysxplore@sysxplore
20 views Oct 26, 2025 ~1 min read
Advertisement
1
Quick Linux tip

Want to know how long a process has been running?

Use the etime column with ps, it shows the "elapsed time" since the process started.

For example, to see how long Nginx processes have been running:

$ ps --forest -C nginx -o ppid,pid,cmd,etime

The ETIME column displays uptime in [[DD-]hh:]mm:ss format.
Perfect for spotting long-running or stuck processes.
Media image
2
This post is just a small taste. I’ve been working on a full Linux book for beginners.

Join the waitlist here:
firststepswithlinux.com
Media image
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • Screenshot Tweet
Create Free Account

Includes 7-day Premium trial

Advertisement