Check whether laptop is running on battery or cable

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

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

What Others Think

<a href="https://www.googlemarkup.com">nice blog</a>
Kaitlyn · 91 weeks and 6 days ago
really learned alot here thanks. but this one is abit outdated. are there any recent updates with breastaugmentationbatonrouge.com?
looneyhans · 47 weeks and 3 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 · 35 weeks and 1 day 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 · 35 weeks and 1 day 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 · 31 weeks and 4 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 · 29 weeks ago
[url=https://productz.com/en/asus-vivobook-s14/p/79ZWB]https://productz.com/en/asus-vivobook-s14/p/79ZWB[/url]
Maraver215 · 13 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?

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: