From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Unlock the full course today

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

Select and sort processes for display

Select and sort processes for display - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

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…

Contents