Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Managing Processes and Jobs

The ps command, short for Process Status, shows you the running processes on your computer, as well as information about who’s running them. It’s good for finding out what’s currently running and for identifying a process ID with a program so you can stop it.

The ps command takes different options based on which OS you’re using. In this book, we’ll cover the Linux options, which also work on macOS.

When you execute the ps command without any arguments, you see the processes running in your current session:

 $ ​​ps
  PID TTY TIME CMD
  3927 pts/1 00:00:00 bash
  7139 pts/1 00:00:00 ps

The output shows the PID, or Process ID, the terminal session that’s running the command, how long it’s been running, and the command ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page