Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -a Select all processes except both session leaders (see getsid(2)) and
- processes not associated with a terminal.
- -f Do full-format listing. This option can be combined
- with many other UNIX-style options to add additional
- columns. It also causes the command arguments to be
- printed. When used with -L, the NLWP (number of
- threads) and LWP (thread ID) columns will be added. See
- the c option, the format keyword args, and the format
- keyword comm.
- -e Select all processes. Identical to -A.
- ps -aef | grep `pwd`
- saji@geeklap:~$ pwd
- /home/saji
- saji@geeklap:~$ ps -aef | grep `pwd`
- 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
- 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 2879 1 0 09:51 ? 00:00:00 /usr/lib/gvfs//gvfs-fuse-daemon -f /home/saji/.gvfs
- saji 14242 14148 0 15:26 pts/7 00:00:00 grep --color=auto /home/saji
- ps -aef | grep $(pwd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement