w command line utility and its examples

This command gives informaton of curently logged in users and their respective login details. This command has few switches which can be used by a system administrator or Linux enthusiast to get the logged in user login details. It is used to show who is logged on and what they are doing. It comes from “procps-x.x.x” package.


1. To see whos logged in

$ w

2. To see hide the header from the command output, use “-h” switch

$ w -h

3. To ignore the username

$ w -u

4. To toggle the “from” field from the “w” commands output then use this switch,

$ w -f

5. To get the version information

$ w -V

Leave a Reply

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