Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. 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.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

Display minutes remaining on Macbook battery

Terminal - Display minutes remaining on Macbook battery
pmset -g batt | awk '/^ /{print $5}'
2017-04-21 20:46:00
User: zlemini
Functions: awk
0
Display minutes remaining on Macbook battery

Remaining battery time is displayed in minutes

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

This command returns 0:00 on my macbook pro with Sierra.

Comment by djangofan 4 weeks and 4 days ago

I enjoyed over read your blog post. Your blog have nice information, I got good ideas from this amazing blog. I am always searching like this type blog post. I hope I will see again

http://bloxorzonline.com">bloxorz

Comment by windowok 4 weeks and 4 days ago

[url=http://www.adidasnmdsales.us/][b] Adidas NMD[/b][/url]

[url=http://www.adidasnmdsales.us/][b] Adidas NMD R1[/b][/url]

[url=http://www.adidasnmdsales.us/][b] NMD[/b][/url]

[url=http://www.nike-airmax90.com/][b] Nike Air Max[/b][/url]

[url=http://www.nike-airmax90.com/][b] Buy Nike Air Max Shoes Shopping[/b][/url]

[url=http://www.nike-airmax90.com/][b] Air Max 90[/b][/url]

[url=http://www.nike-airmax90.com/][b] Shoes Air Max[/b][/url]

[url=http://www.running-shoes.top/][b] Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Original[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Walking Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] Skechers Women's[/b][/url]

[url=http://www.starboots.us/][b] StarBoots[/b][/url]

[url=http://www.starboots.us/][b] KOBE KD9 LeBron14[/b][/url]

[url=http://www.michael-kors-bags.us/][b] Michael Kors [/b][/url]

[url=http://www.michael-kors-bags.us/][b] Cheap Michael Kors Handbags[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy Online[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy boost 350[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Adidas Yeezy[/b][/url]

[url=http://www.asics.us.com/][b] Asics[/b][/url]

[url=http://www.asics.us.com/][b] Asics Running Shoes[/b][/url]

[url=http://www.asics.us.com/][b] Asics Gel Kayano[/b][/url]

[url=http://www.coach-online.us/][b] Coach[/b][/url]

[url=http://www.coach-online.us/][b] Coach Outlet[/b][/url]

[url=http://www.coach-online.us/][b] Coach Handbags[/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Shoes [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Boots [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Eyewear [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses Shopping [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses [/b][/url]

[url=http://www.jordan-air.us/][b] Air Jordan [/b][/url]

[url=http://www.jordan-air.us/][b] Discounted-Nike Discounted Air Jordan [/b][/url]

[url=http://www.adidasyeezy.org][b] Adidas Yeezy [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Shoes [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 750 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 350 V2 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy [/b][/url]

Comment by sevenclock 2 weeks and 6 days ago

[url=http://www.adidasnmdsales.us/][b] Adidas NMD[/b][/url]

[url=http://www.adidasnmdsales.us/][b] Adidas NMD R1[/b][/url]

[url=http://www.adidasnmdsales.us/][b] NMD[/b][/url]

[url=http://www.nike-airmax90.com/][b] Nike Air Max[/b][/url]

[url=http://www.nike-airmax90.com/][b] Buy Nike Air Max Shoes Shopping[/b][/url]

[url=http://www.nike-airmax90.com/][b] Air Max 90[/b][/url]

[url=http://www.nike-airmax90.com/][b] Shoes Air Max[/b][/url]

[url=http://www.running-shoes.top/][b] Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Original[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Walking Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] Skechers Women's[/b][/url]

[url=http://www.starboots.us/][b] StarBoots[/b][/url]

[url=http://www.starboots.us/][b] KOBE KD9 LeBron14[/b][/url]

[url=http://www.michael-kors-bags.us/][b] Michael Kors [/b][/url]

[url=http://www.michael-kors-bags.us/][b] Cheap Michael Kors Handbags[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy Online[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy boost 350[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Adidas Yeezy[/b][/url]

[url=http://www.asics.us.com/][b] Asics[/b][/url]

[url=http://www.asics.us.com/][b] Asics Running Shoes[/b][/url]

[url=http://www.asics.us.com/][b] Asics Gel Kayano[/b][/url]

[url=http://www.coach-online.us/][b] Coach[/b][/url]

[url=http://www.coach-online.us/][b] Coach Outlet[/b][/url]

[url=http://www.coach-online.us/][b] Coach Handbags[/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Shoes [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Boots [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Eyewear [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses Shopping [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses [/b][/url]

[url=http://www.jordan-air.us/][b] Air Jordan [/b][/url]

[url=http://www.jordan-air.us/][b] Discounted-Nike Discounted Air Jordan [/b][/url]

[url=http://www.adidasyeezy.org][b] Adidas Yeezy [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Shoes [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 750 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 350 V2 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy [/b][/url]

Comment by sevenclock 2 weeks and 6 days ago

[url=http://www.adidasnmdsales.us/][b] Adidas NMD[/b][/url]

[url=http://www.adidasnmdsales.us/][b] Adidas NMD R1[/b][/url]

[url=http://www.adidasnmdsales.us/][b] NMD[/b][/url]

[url=http://www.nike-airmax90.com/][b] Nike Air Max[/b][/url]

[url=http://www.nike-airmax90.com/][b] Buy Nike Air Max Shoes Shopping[/b][/url]

[url=http://www.nike-airmax90.com/][b] Air Max 90[/b][/url]

[url=http://www.nike-airmax90.com/][b] Shoes Air Max[/b][/url]

[url=http://www.running-shoes.top/][b] Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Original[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Walking Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] New Balance Running Shoes[/b][/url]

[url=http://www.running-shoes.top/][b] Skechers Women's[/b][/url]

[url=http://www.starboots.us/][b] StarBoots[/b][/url]

[url=http://www.starboots.us/][b] KOBE KD9 LeBron14[/b][/url]

[url=http://www.michael-kors-bags.us/][b] Michael Kors [/b][/url]

[url=http://www.michael-kors-bags.us/][b] Cheap Michael Kors Handbags[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy Online[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Yeezy boost 350[/b][/url]

[url=http://www.yeezy-outlet.us/][b] Adidas Yeezy[/b][/url]

[url=http://www.asics.us.com/][b] Asics[/b][/url]

[url=http://www.asics.us.com/][b] Asics Running Shoes[/b][/url]

[url=http://www.asics.us.com/][b] Asics Gel Kayano[/b][/url]

[url=http://www.coach-online.us/][b] Coach[/b][/url]

[url=http://www.coach-online.us/][b] Coach Outlet[/b][/url]

[url=http://www.coach-online.us/][b] Coach Handbags[/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Shoes [/b][/url]

[url=http://www.timberland-outlets.org/][b] Timberland Boots [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Eyewear [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses Shopping [/b][/url]

[url=http://www.sunglasses--oakley.us/][b] Oakley Sunglasses [/b][/url]

[url=http://www.jordan-air.us/][b] Air Jordan [/b][/url]

[url=http://www.jordan-air.us/][b] Discounted-Nike Discounted Air Jordan [/b][/url]

[url=http://www.adidasyeezy.org][b] Adidas Yeezy [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Shoes [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 750 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy Boost 350 V2 [/b][/url]

[url=http://www.adidasyeezy.org][b] Yeezy [/b][/url]

Comment by sevenclock 2 weeks and 6 days ago

| http://www.straforevi.com/urunler/maket-pasta/" link="black" alink="red" vlink="blue">maket pasta | http://www.metpordekor.com/" link="black" alink="red" vlink="blue">s?ve fiyatları | http://www.straforevi.com/urunler/maket-pasta/strafor-pasta-altligi/" link="black" alink="red" vlink="blue">strafor pasta altlığı | http://www.straforevi.com/urunler/maket-pasta/maket-pasta-macaron-strafor-kule/" link="black" alink="red" vlink="blue">beze kulesi | http://www.straforevi.com/" link="black" alink="red" vlink="blue">strafor nedir |

Comment by strafor 1 week and 4 days ago

Your point of view

You must be signed in to comment.