The who command is part of the coreutils package, which is typically pre-installed on most Linux distributions. If for some reason it is not available on your system, you can install it by installing the coreutils package.
Here’s how to do it on Ubuntu:
- Open your terminal.
- Update the package list:
sudo apt update - Install the
coreutilspackage:sudo apt install coreutils
After installation, you should be able to use the who command. You can verify its installation by running:
which who
If you see a path returned (like /usr/bin/who), it means the command is successfully installed.
