3 ms·
This is a stupid trivia question. I use ps -ef and leave it at that. In my entire career I've rarely needed anything else and if I did I would look it up but ne
by employee8000 9y ago
This is a stupid trivia question. I use ps -ef and leave it at that. In my entire career I've rarely needed anything else and if I did I would look it up but never enough to remember. To base an interview question off of that speaks volumes about you.
- mjevans 9y agoI agree, and it's interesting that you know -e, while I've memorized -axuf ; I guess it's more portable? Again, this is one of those, "Here's what I've got cached, and here's where I'd look up what I don't know offhand" questions.
- jwilk 9y agoNo, "-axuf" is a weird mixture of BSD and POSIX syntax. From the ps manpage: Note that "ps -aux" is distinct from "ps aux". The POSIX and UNIX standards require that "ps -aux" print all processes owned by a user named "x", as well as printing all processes that would be selected by the -a option. If the user named "x" does not exist, this ps may interpret the command as "ps aux" instead and print a warning. This behavior is intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and thus should not be relied upon.
- wpietri 9y agoWell, yes and no. If somebody just scored it as written, giving points for each argument known, it would be a dumb trivia question. But as I said, that's not what I do. Try it next time you're mingling with ops people. Say in a bar at a conference. Don't look at what they answer. Look at how they answer. Some people are comfortable not knowing. Some people are excited to discover the ones they forgot they knew. some people get curious and eager to fill the hole they've just noticed in their knowledge. And some people get defensive and peevish.
- a-priori 9y agoSome people focus their curiosity on more important things than arguments for a command line utility.