![]() ![]() 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. It also causes the command arguments to be Another common option on these systems is -l, which specifies the ' l ong' output format. GNU long options, preceded by two dashes. On operating systems that support the SUS and POSIX standards, ps commonly runs with the options -ef, where '-e' selects e very process and '-f' chooses the ' f ull' output format. With many other UNIX-style options to add additionalĬolumns. 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. Processes not associated with a terminal. ![]() From the man page for ps: -a Select all processes except both session leaders (see getsid(2)) and ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |