F S UID PID PPID CLS PRI ADDR SZ WCHAN RSS PSR STIME TTY TIME CMD 5 S root 30780 1 TS 29 - 1075 - 1044 3 Aug18 ? 0:19 /usr/sbin/sshd 4 S root 17479 30780 TS 27 - 1719 - 2156 0 00:13 ? 0:00 \_ sshd: graves [priv] 5 S graves 17482 17479 TS 29 - 1775 - 1676 0 00:13 ? 0:00 \_ sshd: graves@pts/0 0 S graves 17483 17482 TS 29 - 864 wait 2280 0 00:13 pts/0 0:00 \_ -bash 0 R graves 17142 17483 TS 27 - 640 - 820 3 02:46 pts/0 0:00 \_ ps -Hacl -F S -A f 5 S root 30816 1 TS 26 - 8484 - 20872 3 Aug18 ? 14:31 /dh/apache2/apache2-etherape/apache2-etherape-httpd -DModSSL -d /dh/apache2/apache2-etherape 5 S dhapache 8429 30816 TS 29 - 8404 - 14788 1 Aug18 ? 0:00 \_ /dh/apache2/apache2-etherape/fcgi-pm -DModSSL -d /dh/apache2/apache2-etherape 5 S dhapache 8442 30816 TS 29 - 8484 - 15004 2 Aug18 ? 0:47 \_ /dh/apache2/apache2-etherape/apache2-etherape-httpd -DModSSL -d /dh/apache2/apache2-etherape 4 S htacces 5374 8442 TS 27 - 4961 376052 8680 0 01:51 ? 0:03 | \_ php5.cgi 4 S htacces 5375 8442 TS 28 - 4957 390250 8648 0 01:51 ? 0:02 | \_ php5.cgi 0 S root 8466 30816 TS 25 - 790 sinitt 1156 0 Aug18 ? 0:00 \_ /dh/passenger/ext/apache2/ApplicationPoolServerExecutable 0 /usr/bin/ruby
Shows a less detailed output, made only of the process tree and their pids.
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: