who -u | grep -vE "^root " | kill `awk '{print $7}'` Logs all users out except root. 1Submit alternativeReport as maliciousReport as a duplicateCommand to logout all the users in one command It's only to logout all other user's except "root" Only to logout all users except root This command logs out all users - which is way more secure to use ps -ef and "grep" to kill processes.

Share Your CommandsKDE Console Logout command (with confirmation dialog)Notify me when users log inExecute a command on logoutShows users and 'virtual users' on your a unix-type system

Related Articles