I am the root user and I am setting up a menu for another user to use. This other user will only get this menu.
There are two options inter linkedthat are interlinked: the first option is to search users the. The code I got is:
last | awk '{print $1,$4,$5,$6,$7} '
I have checked this code and it works, it shows me the users nameusernames and the day they last logged on.
For the second option: I want to be able to set a date, and them delete users who haven't been active since that date those users will have been checked by, using the previousoutput of the above command.
I am using Linux Mint and Vim text editor.