Advertisement
Guest User

Untitled

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