command ps -Hacl -F S -A f

View Processeses like a fu, fu

I don't truly enjoy many commands more than this one, which I alias to be ps1.. Cool to be able to see the heirarchy and makes it clearer what need to be killed, and whats really going on.
Sample Output
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

1 Alternatives + Submit Alt

What Others Think

For an interactive version, try htop: http://htop.sourceforge.net/ . Hit F5 to get the process tree.
bwoodacre · 457 weeks ago

What do you think?

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.

What's this?

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.

Share Your Commands



Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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: