From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Select and sort processes for display - Linux Tutorial
From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
Select and sort processes for display
- [Grant] 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 would 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 it shows every process. To give us…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Select and sort processes for display7m 29s
-
Monitor active processes4m 33s
-
(Locked)
Send signals to processes6m 29s
-
(Locked)
Run a program with higher or lower priority than the default3m 13s
-
(Locked)
Run jobs in the foreground and background4m 18s
-
(Locked)
Signal a program to continue running after logout2m 1s
-
(Locked)
-
-
-
-
-