From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Monitor processes using ps

Monitor processes using ps

From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Start my 1-month free trial

Monitor processes using ps

- [Instructor] A LINUX system may have hundreds of processes running at any time. The first tool we'll look at to monitor processes is the PS command. In a terminal, type in PS and hit enter. By default, PS only shows the processes run by the user executing it. It shows the process ID, the terminal it was run on, the aggregated execution time, and the command that was run. Oddly, the PS command has three different types of syntax options, UNIX, BSD, and GNU. The UNIX options look as you'd expect, with a dash before a single letter. The GNU options are words with two dashes, just like other commands. The odd ones are the BSD options, which don't have any dashes at all. For this course, we'll focus on the UNIX and GNU options. To get PS to display every process, we'll want to use the dash E option. Type in PS space dash E, and hit enter. This still shows the same columns as PS with no options, but shows every process. To give us an idea which process has started other processes, we can…

Contents