‘who’ Command Examples for Linux Beginners

This article will explain some useful examples of who command for Linux newbies.

1. If you run command without any arguments, it will display account information (user login name, user’s terminal, time of login as well as the host the user is logged in from) on your system similar to the one shown in the following output.

2. To print the heading of the columYou can check the current runlevel with the -r option.

3. To print the login names and total number of logged on users, use the -q flag.

4. Next, to add user’s message status as +- or ?, use the -T option.

5.You can check the current runlevel with the -r option.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *