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
From the course: Linux System Engineer: Kernel Tuning and Remote Logging
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
-
-
-
Introduction to performance testing52s
-
(Locked)
Monitor processes using ps7m 29s
-
(Locked)
Monitor processes in real time4m 33s
-
(Locked)
Monitor processes using GNOME System Monitor1m 45s
-
(Locked)
Use Performance Co-pilot (PCP) to gather statistics4m 37s
-
(Locked)
Use turbostat to gather CPU statistics2m 44s
-
(Locked)
Use SS to gather network statistics3m 19s
-
(Locked)
Other CLI performance monitoring tools5m 30s
-
-
-
-
-
-