Nontoxic Commands
As you now know, all of this typing is easy enough, but in order to actually do something useful with your Terminal, you need to type commands—and there are more of them than you could ever hope or need to know. To get you started, we will begin with some commands that are easy to understand, nontoxic, and completely kitten-friendly.
$ whoami
There is no command as easy, safe, or even as seemingly useless, as whoami. Rather than help those with multiple-personality disorders discover who they are at any given moment, the whoami command simply tells you which user is currently logged in. Try it out by typing whoami after the $ and then pressing the ENTER key. Remember that commands are case sensitive.
The Terminal will now tell you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access