Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

TIL about `ps awwfux`. Great way to remember it


I love `ps axufww` so much and ah fuck to having learned it that way. It's the first thing I run on a server when logging in. It tells you so much about the system. That, `w` and a `dmesg -T` will go 90% of the way to diagnosing most system issues.


Fun to see how admins remember those flags. My version is fauxww


See explainshell [0], a great resource, for the full explanation of these flags.

(Another one of my favorites is cat -vet)

[0] https://explainshell.com/explain?cmd=ps+awwfux


The explainshell output is actually largely wrong here. For historical reasons, GNU ps has two completely different sets of flags depending on whether you use a dash (ps -abcd) or not (ps abcd). The man page documents both sets, but explainshell is getting confused and showing a mix of dash versions and non-dash versions. For example, it shows the documentation for '-f' ("full-format listing"), but it should be showing the documentation for 'f' ("ASCII art process hierarchy (forest)").

(I considered filing a bug report, but there is one already: https://github.com/idank/explainshell/issues/214)


Another one I like is `netstat -tulpen` (tulpen is german for tulips)


I use `cat -A` on Linux, which is equivalent to `cat -vET`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: