portxy.blogg.se

Ps ef unix command
Ps ef unix command









Ps ef unix command mac os x#

This command actually generated 99 lines of output, and I cropped it to just show the first 20 lines (using ps -ef | head -20).Īs mentioned, that's the older way to list processes on a Unix system (and it may still be preferred on Unix systems like HP-UX, AIX, and Solaris I don't really know, I just use Linux and Mac OS X these days). That was actually just the first 20 lines of output from this ps command on my CentOS Linux test system. This leads to much more output: UID PID PPID C STIME TTY TIME CMD To show every process running on the system, we add the e argument to our previous ps command, like this: ps -ef If you're a Linux system administrator, you're typically interested in information about all the processes running on the system. Showing information about every processĪs mentioned, those two ps command examples just show information about your processes. Leads to this output: UID PID PPID C STIME TTY TIME CMDĥ01 4343 4342 0 0:00.18 ttys000 0:00.35 -bashĥ01 2617 2616 0 0:00.41 ttys001 0:00.66 -bashĥ01 18201 18200 0 0:00.15 ttys003 0:00.27 -bashĪs you can see this adds a few more columns of output to my ps command, including UID (user-id), PPID (parent process-id), and a couple of other columns I don't really look at. Used by itself, the f argument shows "full" information about just my processes. For instance, I can add the f argument to get "full" information about each process. There are many ways to customize the output of the ps command. In practice I never run the ps command without any arguments like this, but I wanted to show this to help us get started. In this case I can tell (from experience) that I have three bash shells (terminals) running on my current system. The PID column shows the process-id, the second column shows the TTY (terminal) the process is attached to, the TIME column shows how much CPU time the process has used, and the CMD column shows the command that is running. You'll see output from this command looks something like this: PID TTY TIME CMD For example, if you issue the basic command like this without any arguments: ps If you run the ps command by itself, it only shows very basic information about the processes you are currently running. Unix/Linux processes FAQ: Can you share some examples of the Linux ps command? (Or, how do I use the ps command?) The basic Linux ps command









Ps ef unix command