Display specific username

To know the log in details of a specific user, use the username as argument of last command.

Syntax:

Example:

last <username>

specificusername1

Look at the above snapshot, it displays log in information only about user sssit.


Display reboot information

To know the reboot details, use following command

Syntax:

specificusername2

Look at the above snapshot, it displays all the reboot information.


Display specific pts

Make pts as an argument of the last command to print information about the specific pts.

Syntax:

Example:

last pts/0

specificusername3

Look at the above snapshot, here you can see down in line 5. It denotes that user was logged in

from specific time until the system is reboot or shutdown.





Latest Courses