Sample Header Ad - 728x90

delete multiple users

0 votes
2 answers
2845 views
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 that are interlinked: the first option is to search users. 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 usernames 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, using the output of the above command. I am using Linux Mint and Vim text editor.
Asked by user93524
Dec 5, 2014, 12:26 PM
Last activity: Jun 16, 2025, 05:06 PM