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.

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:



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!

Top Tags



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

log your PC's motherboard and CPU temperature along with the current date

Terminal - log your PC's motherboard and CPU temperature along with the current date
echo `date +%m/%d/%y%X |awk '{print $1;}' `" => "` cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print $2, $3;}'` >> datetmp.log
2009-08-24 21:26:29
User: ninadsp
Functions: awk cat echo
log your PC's motherboard and CPU temperature along with the current date

Uses the data in the /proc system, provided by the acpid, to find out the CPU temperature. Can be run on systems without lm-sensors installed as well.


There is 1 alternative - vote for the best!

Terminal - Alternatives
date +%m/%d/%y%X|tr -d 'n' >>datemp.log&& sensors|grep +5V|cut -d "(" -f1|tr -d 'n'>> datemp.log && sensors |grep Temp |cut -d "(" -f1|tr -d 'n'>>datemp.log
2009-03-31 18:13:23
User: f241vc15
Functions: cut date grep sensors tr
cat datemp.log


Sys Temp: +11.0?C

CPU Temp: +35.5?C

AUX Temp: +3.0?C

Know a better way?

If you can do better, submit your command here.

What others think

Thank you for the information regarding the /proc/acpi/thermal_zone directory. You may want to let the users know that they should have this script in a while loop and to fork it.



while :;


echo `date +%m/%d/%y%X |awk '{print $1;}' `" => "` cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print $2, $3;}'` >> datetmp.log;




#nohup file.sh &

Comment by Abiden 385 weeks and 6 days ago

well, i know i'm commenting damn late, forgot to reply. i was thinking of letting crond handle the execution.

this one's neat too, but shouldn't there be a sleep in the middle?

Comment by ninadsp 379 weeks and 6 days ago

In the Oughout.Ohydrates., sales tax can be a ton a lot more shifty. No seem until you happen to be waiting on the particular check out if it's just elevated to your expense charge.Are an individual mindful what exactly is create amongst the"parfum". your "eau dentro de parfum" in addition to usually "eau de toilette"? Earliest while using fragrance is expensive. It includes 30-40 per-cent with the fantastic sensing oils and for that reason contain the most effective and aimed aroma, and furthermore, as inside large concentrate your adequate to work with a single as well as Only two drops. The actual scent trips on your regarding 6-9 a lengthy though. It's much better to be able to as a way to as nighttime parfum.Unlike several other porcelain ceramic wristwatches which can be particularly priced, this particular MK enjoy variety is extremely rather costed along with really likes begin from close to $200 and rise to help $600. Within my individual impression, what a substantial anticipate these kinds of timepieces thinking about his or her quality and also the extravagance marking connected with all of them. This specific cost-effective price variety is a second reason why his or her watches are really well-liked everywhere since progressively more persons may go through the style of those wrist watches.It perceived to discover why Factory Wall socket possesses in fact obtained this kind of well known name in addition to the reason he'll almost certainly continually always be one of several foremost Us coders ever.Perfume is one kind of those activities, similar to diamond companies and also the living space price at a Tahitian location, that only will not continue income. Many competent gals associated with scent can tell you which parfum minute rates are continuous because the Rock of Gibraltar. The best bargain you get by several scent http://www.hermesbeltsbirkinkellybag.co.uk/ companies is really a form of sold variety for the vacation trips and Single mother's Evening.I got in which expertise when it concerns Movie theater through Yves St. Laurent. We suched as being the aroma fully after i made use of the particular paper ethusist deprive on the other hand are actually lots of various other fragrances which felt a lot more intriguing, notable and dynamic. Nevertheless while i did a new "test" regarding wearing Flicks to have an afternoon, I actually considered i liked the smell.MK is a high-end brand name containing basically received its good popularity. Honours for example the CFDA Ladies Hair stylist of the season throughout 2000, the actual CFDA Guys Custom made of this year inside 2004 plus the CFDA Life-time Success Award this year possess basically demonstrated the spot the reason the MK's selection can be a force to be considered. singularly needs a control career from the design of most items. It's possible this is the reason the manufacturer provides basically started to help expand in addition to awareness this sort of big audiences. His / her enjoy assortment possesses basically kept a sense good quality and class which will sketch enthusiasts for several years forward.Right following going to Newly ordered You are able to at 20 to obtain straight down his / her position over Parsons, your incredibly populared university or college of style and type, this individual lowered away from each other as part of his additional 12 months. An extraordinary collection that didn't have any type of only for safety effects on and in some cases just around the corner potential vocation since his 5th assortment put into practice over August 2005. This man offers cracked sturdiness to help electric successful several cash inspirations.

Comment by stephanieg915 13 minutes ago

Your point of view

You must be signed in to comment.