Command to logout all the users in one command

who -u | grep -vE "^root " | kill `awk '{print $6}'`
Only to logout all users except root

By: leosimon
2010-11-13 16:51:09

4 Alternatives + Submit Alt

What Others Think
catherineharris · 30 weeks and 6 days ago
I really like what Nigel said to Angelia in the film. When your personal life is gone, remember to notify me, it means you are going to be promoted. I very much agree with this sentence, life and work, we choose to work because of life, and work makes us neglect life. When you want to get promoted, you have to sacrifice more of your private time to work. Choice is a very interesting thing, and when you make a choice, it also means that you will lose something very pity. seo consultant [url=]virtual phone system service[/url] A very interesting website
newtopblog · 27 weeks and 4 days ago
Life is a journey, you don’t care about the destination, you care about the scenery along the way and the mood of seeing the scenery. what is ecommerce
C07_Terry · 27 weeks and 4 days ago
Students who have lived in these centuries are really blessed. Because they have lots of opportunities for learning and these Oakey Assisted Living kinds of tutorials help them to easily learn any kind of language with expert advice. From here, you can easily learn the command line languages and keep sharing more updates here.
Alyssalauren · 26 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: