last Linux Commands
What is Linux last Command?
Explanation
last COMMAND:last command is used to display the last logged in users list. Last logged in users informations are read from the file /var/log/wtmp.
SYNTAX :
last [options]
OPTIONS:
| -n |
Specify how many lines to show. |
| -R |
Suppresses the display of the hostname field. |
| -x |
Display the system shutdown entries and run level changes. |
| -a |
Display the hostname in the last column. Useful in combination with the next flag. |
EXAMPLE:
-
last
Displays the last logged in users list.
-
last -x
Displays the logged in users list with shutdown entries and run level changes.