Don't ask why, but is there a Unix command that takes no arguments?
closed as too broad by Kusalananda♦, Jeff Schaller♦, Christopher, A.B, penguin359 Jan 11 at 0:01
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
false are two examples.
Or did you mean commands that take no options? I can't think of any, but the original Unix version of
echo didn't take any options. There's even a story about it how it came to take options.
nologin takes no arguments and is widely available on Linux and BSD.
On CentOS 4 and 5, the
arch command takes no arguments. On other linux distros, arch is now provided by GNU coreutils which takes --version and --help. With CentOS 4 and 5 it comes from util-linux which differs from GNU's version.
A lot of the things in GNU coreutils take only --help and --version, if you look at different Unixes that don't use GNU coreutils, they don't accept any arguments:
arch all take no arguments.
I'm sure they accept them, but they ignore them.
If you accidentally run
docker ps a (instead of
docker ps -a) you'll actually get a message:
"docker ps" accepts no arguments.
Kinda reminds me of my wife.