课程: Linux CentOS 7: Shells and Processes

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Monitor processes using ps

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 that 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 looks 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 -e option. Type in "ps -e" and hit Enter. This still shows the same columns as ps with no options, but shows every process. To…

内容