Commonly Used for awk
awk mainly deals with data in the field of each row, and the default field separator is blank key or tab key. We can use last to retrieve the information of the login person, and the result is as follows(take out only the first 5 lines): $ last -n 5 jimmy unix:0.0 Tue Nov 9 12:41 still logged in jimmy unix:0.0 Tue Nov 9 11:54 - 12:40 (00:46) boot time Tue Nov 9 11:52 shutdown time ...