
So the actual command run is grep pwd.įor more information refer this link.(Thanks to for this information). , then the command is run and the output (what is printed to the screen) is caught and substituted to where the original $() or `` string was. Saji 14242 14148 0 15:26 pts/7 00:00:00 grep -color=auto /home/sajiĪs you can see the output shows the lines matching my current working directory, which is /home/saji. Saji 2855 2814 0 09:51 ? 00:00:00 /usr/bin/gpg-agent -daemon -sh -write-env-file=/home/saji/.gnupg/gpg-agent-info-geeklap /usr/bin/dbus-launch -exit-with-session gnome-session -session=ubuntu Saji 2854 2814 0 09:51 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/gpg-agent -daemon -sh -write-env-file=/home/saji/.gnupg/gpg-agent-info-geeklap /usr/bin/dbus-launch -exit-with-session gnome-session -session=ubuntu Prints out all the lines matching the output of the command pwd(which will be the path your current working directory), from the output of ps -aef. Grep is used to print lines matching a pattern. The c option, the format keyword args, and the format Threads) and LWP (thread ID) columns will be added. In CMS looged in as root you can type ps - ef grep winio This will give you a. It also causes the command arguments to be Avaya Cms Command ListCalling and Messaging Communication Manager 8. With many other UNIX-style options to add additionalĬolumns. GNU long options, preceded by two dashes. Processes not associated with a terminal. The general syntax for the ps command is as follows: ps OPTIONS For historical and compatibility reasons, the ps command accepts several different types of options: UNIX style options, preceded by a single dash.

From the man page for ps: -a Select all processes except both session leaders (see getsid(2)) and
