How portable is the `ps` command? How portable is the `ps` command? unix unix

How portable is the `ps` command?


The POSIX Standard is publicly available on the web. Yes, ps is one of the standardized utilities. If you stick to the standard options, you should be pretty portable.

Note however, that forcing some utilities to behave posixly correct, setting certain environment variables might be necessary. In particular, systems using the GNU utilities may need POSIXLY_CORRECT=yes or similar being set.