Command to logout all the users in one command

sudo who | awk '!/root/{ cmd="/sbin/pkill -KILL -u " $1; system(cmd)}'

5
By: tg0000
2021-02-03 13:35:52

4 Alternatives + Submit Alt

What Others Think

love this soo much! https://graberfence.com
sammm · 4 weeks ago
This is really going to help me a lot on coding. All the articles in this blog is awesome! Thank you for sharing this to us. $http://patiometairie.com/">http://patiometairie.com/
Basti · 4 weeks ago
jmaley · 3 weeks and 6 days ago
Man I miss scripting...probably forgot more than I know now! Now its fun web stuff for https://www.columbusadvantage.com
jmaley · 3 weeks and 6 days ago
Peryourhealth is online health billing platform, where you can pay your almost all of your medical bill online at their official site. At peryourhealth site you can pay your utility bills, you can check your statement and request the fund transfer as well. Apart from these features, there are much more features of per your health.
jenwin · 3 weeks and 5 days ago
Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. chemical products
xoheko1229 · 3 weeks and 1 day ago
read more
milanjoy · 3 weeks and 1 day ago
The king of cowpunk has been doing astonishing work since its inception. They have been working for more than 25 years. They have created a number of outstanding products in this duration. Keep doing positive work, it will be appreciated.http://jawadtransport.com/chiller-van/">jawadtransport freezer truck
Ehfruche · 2 weeks and 2 days ago
There is no fear on the Internet of not liking a girl or a man. On the avatar or in the portfolio of the mail order bride, for sure, only the best photos are laid out, on which she likes. In correspondence, you can tell about yourself https://mailorderbridesadvisor.com/ only what you consider necessary when meeting you. Even the first to start chatting on the Web is not ashamed!
hostinark · 2 weeks and 2 days ago
There is no fear on the Internet of not liking a girl or a man. On the avatar or in the portfolio of the mail order bride, for sure, only the best photos are laid out, on which she likes. https://mailorderbridesadvisor.com/ In correspondence, you can tell about yourself only what you consider necessary when meeting you. Even the first to start chatting on the Web is not ashamed!
hostinark · 2 weeks and 2 days ago
Much obliged to you for sharing. iMessage For PC
Graham742 · 2 weeks and 1 day ago
Amazing work APA Referencing Generator, word counter
joshuadollar · 2 weeks ago
well that would help
aidennord1 · 1 week and 2 days ago
This is these kinds of an ideal resource in which you will be giving and you also present that apart regarding complimentary. Appreciation from [url]https://centraloregondrywall.com[/url]
jackslesly19 · 6 days ago
Thanks for sharing.I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one. alaskasworld.com
Richlandd · 5 days ago
I didn't know that this kind of command exist, awesome information! https://www.drywallomaha.com/
ogilview82 · 5 days ago
Online assignment help ensure that scholars pay attention to their studies and make timely submission of assignments without any problem. So, choose the experts’ help and submit your papers without any delay in Oman. Share your concerns with academic writers and pay attention to studies.
sairasmith · 5 days ago
I have applied it successfully, and furthermore I am very pleased with all that spotify premium free has to offer.
Laylajane · 2 days ago
This command is very useful. Saves me trouble logging out from electricians in bradenton fl
brenbobb01 · 1 day 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?

commandlinefu.com 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

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: