Implement Command who
Objective
Have a command, who, which does the following
help page
BusyBox v1.24.1 (2016-02-19 11:20:55 SGT) multi-call binary.
Usage: who [-a]
Show who is logged on
-a Show all
-H Print column headers
Done
- When the command complies with the above interface
- When it can be compiled as an applet into the slimbox binary
Demo
Show each command as an 'applet', and that it conforms to the interface:
$ slimbox who --help
BusyBox v1.24.1 (2016-02-19 11:20:55 SGT) multi-call binary.
Usage: who [-a]
...
Show that when called as a symlink, the same happens
$ ln -s slimbox who
$ ./who --help
BusyBox v1.24.1 (2016-02-19 11:20:55 SGT) multi-call binary.
Usage: who [-a]
...