On a system that has been running a long time, you can get some interestingly large TIME values. The TIME field is the amount of CPU time the process has accumulated, not how long it has been running. How much CPU time have processes consumed? The r refers to running processes and, when you're working on a system with a single CPU, the running process when the command is used is that process itself. This information is only interesting if you have multiple CPUs. The ps r command shows you tasks that are currently using the CPU. The ps command that generated this output is near the bottom and five levels deep (note the indentation).Īnother command for displaying the parentage of processes is pstree which shows the processes were spawned by other processes in a diagram like that shown below. For example, in the truncated output below, you can see some of the processes that kreadd, init, and sshd started. With certain options, the ps command can also show you some details of process heredity - in other words, details on what process started other processes. Other commands can provide details on the start time. Note that the STIME and START fields in the output above only tell us that the processes were started last year. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND In the two command below, the ps axu (i.e., Berkely form of the command) shows some additional data fields. $ psĭepending on what version of Unix you're using, you'll have various forms of ps and the information listed will be a little different. Notice that the ps command with the -u option displays one additional process - the sshd login process. Here are very simple examples showing just the current user's processes. If you want a repetitive update of the selection and the displayed information, use top instead.One of the first commands that Unix users learn is ps with and without arguments to show them what processes are running. Ps stands for ‘Process Status’ and displays information about a selection of the active processes. Command: Command used to activate the process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |