Written 31 Aug 2026. This is a how-to, not a product card.
See the login name
After SSH works, print the login name with whoami so home and sudo make sense. You don't need extra login software for this.
See the month on a calendar printed this month as a grid. Tonight you ask for your login name: whoami. Whoami prints the login name on one line. That login name also appears in the home-folder path and sudo messages. You are still only practicing in home on the computer. It does not need extra login software, htop, Grafana, or a NAS for this one job.
Skip until SSH already works
SSH from the couch should already get you a prompt. If who is sitting there is what you want, that is see who is on the computer right now. If login history is what you want, that is see who logged in recently. If sudo is what you want, that is see if your login can use admin commands. If numbers and groups are what you want, that is see user number and groups.
What this is
whoami prints the login name. You type whoami. One line comes back. That same name appears in the home-folder path and sudo messages. It is not who. Who lists sessions. It is not id. Id prints numbers and groups. You can stop at whoami.
Practice whoami in home
SSH in. Make sure home is where you sit:
pwd
You want a path that ends in your login name. If not:
cd ~
Ask for the login name:
whoami
You should see the login name on one line. Read it once. That is enough for tonight. Practice only in home.
Debian and Ubuntu usually already have whoami. Don't make apt the job. If whoami is missing:
sudo apt install coreutils
Then stop. That install is not the lesson.
Useful extras, still home only
No extras required. If you want numbers and groups next, that is see user number and groups.
What this is not
This is not who. That is see who is on the computer right now. It is not login history. That is see who logged in recently. It is not old accounts. That is see if the computer still has old login accounts. It is not sudo. That is see if your login can use admin commands. It is not a password change. That is change the login password. It is not id. That is see user number and groups. It is not opening SSH to the internet. That is keep the computer on the house network. Don't forward port 22.
What next
Need numbers and groups? See user number and groups. Need who is sitting there? See who is on the computer right now. Need kernel name? See kernel name and architecture. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.
Skip
- Skip if SSH still fails. Finish SSH from the couch first.
- Skip who, last-login, sudo, and id as tonight's job. Those pages already exist.
- Skip changing passwords tonight. That is change the login password.
- Skip files under
/etc, SSH folders, or paths you don't own. Practice only in home. - Skip
rm -rf. Careful delete only: delete a file carefully. - Skip opening SSH to the internet so you can do this from a coffee shop. That is keep the computer on the house network. Don't forward port 22.
Sources
Debian: whoami(1). Ubuntu: whoami(1). Official pages only. For the login, see SSH from the couch. For numbers and groups, see see user number and groups.