Check whether laptop is running on battery or cable

cat /sys/class/power_supply/AC/online
1 = on ac, 0 = on bat

1
By: wuseman1
2019-08-13 21:31:00
cat

What Others Think

<a href="https://www.googlemarkup.com">nice blog</a>
Kaitlyn · 122 weeks ago
really learned alot here thanks. but this one is abit outdated. are there any recent updates with breastaugmentationbatonrouge.com?
looneyhans · 77 weeks and 4 days ago
Hello, great question and I can give a solution to this question. But for this, You should have interested in my answer. Before answering, I want to say you can try http://mac-more.co.ke/apple/product-category/mac/macbook-pro/">Macbook pro Kenya. Because in this good features and all facilities in a simple way. I hope so, You will focus on my instruction
JamesCCopeland · 65 weeks and 2 days ago
Hello, great question and I can give a solution to this question. But for this, You should have interested in my answer. Before answering, I want to say you can try http://mac-more.co.ke/apple/product-category/mac/macbook-pro/">Macbook pro Kenya. Because in this good features and all facilities in a simple way. I hope so, You will focus on my instruction
JamesCCopeland · 65 weeks and 2 days ago
I don't have so much interest in the IT field things. But, I love to do Yoga daily and I am a Yoga teacher Gustavo Woltmann lives in Brazil.
gustavowoltmann1 · 61 weeks and 5 days ago
I really enjoyed reading your article. I found this as an informative and interesting post, so I think it is very useful and knowledgeable. guitar lessons boulder
aegyjingoo · 59 weeks and 1 day ago
[url=https://productz.com/en/asus-vivobook-s14/p/79ZWB]https://productz.com/en/asus-vivobook-s14/p/79ZWB[/url]
Maraver215 · 43 weeks and 5 days ago
where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar midnight mint psychedelic chocolate bar origin mango psilo gummies 0.25g-1g origin strawberry psilo gummies 0.25g-1g penis envy psychedelic chocolate bar psilocybin cube gummies vegan dark chocolate psychedelic chocolate bar microdoses brain capsules 50mg-200mg chill capsules 50mg-200mg clarity capsules 50mg-200mg health capsules 50mg-200mg love capsules 50mg-200mg mood capsules 50mg-200mg pure capsules 50mg-200mg social capsules 30 pack 350mg social capsules 5 pack 350mg
johnson20007 · 15 weeks and 6 days ago
IT LABS PRO est la meilleure société de services d'ingénierie informatique au Maroc, en vous déplaçant à son siège à Marrakech - gueliz vous allez bénéficier des meilleurs services de création de sites et applications de gestion web, cette dernière privilégie ses clients et mettez à leur disposition toutes ses ressources pour l'accomplissement de leurs projets tout en offrant son expertise en conseillant ses clients et les accompagnant pour améliorer leurs images sur intérêt et mieux gérer leurs business. Creation site web maroc
itlabspro · 8 weeks and 2 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?

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: