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

Random unsigned integer

Terminal - Random unsigned integer
echo $(openssl rand 4 | od -DAn)
2010-11-09 14:55:39
User: putnamhill
Functions: echo od
Random unsigned integer


There are 10 alternatives - vote for the best!

Terminal - Alternatives
echo $RANDOM
2010-11-09 09:57:44
User: depesz
Functions: echo
Tags: random

works at least in bash. returns integer in range 0-32767. range is not as good, but for lots of cases it's good enough.

od -N 4 -t uL -An /dev/random | tr -d " "
2010-11-09 07:57:16
User: hfs
Functions: od tr
Tags: random

Reads 4 bytes from the random device and formats them as unsigned integer between 0 and 2^32-1.

curl -s "https://www.random.org/cgi-bin/randbyte?nbytes=4" | od -DAn
2010-11-09 18:26:24
Functions: od
Tags: random

Grab 4 bytes from www.random.org over ssl and format them as an integer

Know a better way?

If you can do better, submit your command here.

What others think

MK can be a luxurious brand name containing really obtained the very good credibility. Honors such as the CFDA Women's Clothier of year throughout 2004, the particular CFDA Guys Type Programmer of the Year within 2002 as well as the CFDA Life Accomplishment Award really demonstrate the world the reason why your MK's variety is usually a pressure being reckoned together with. professionally has a supervision obligation in the format coming from all items. Maybe that's why the brand offers really started to inflate along with attract in order to a real massive market. His / her observe variety offers experienced sense of top quality and beauty that may appeal fans for quite a while to return.Take bags are a couple of by far the most versatile bags close to. The Handbags close relatives will not be proof against that will description. The particular Hand bags Certain Bag fades pick for your the autumn months. Your exceptional matter about take bags is perhaps all the applying they could be used by. It's possible to store a few career file files, their particular Macbook or simply a jacket for the cooler night time. They give an even more popular method of having your pc all-around after that the fundamental notebook bags provided from individuals key computer system stores.Also range from You actually.Utes., Private coach, north of manchester U . s . market place, nonetheless furthermore the key function. 2013 monetary calendar year finishing November Up to 29, Next year, released in Present cards this http://www.hermesbeltsbirkinkellybag.co.uk/ year, Trainer, nevertheless it is catagorized small: Q2 regular earnings elevated 4 percent for you to One dollar.5 various billion, A dollar.Half-dozen billion lessened compared to industry predicted.Anyone fully grasp that you great amazingly important just get next day, make certain you acquire adequate acquire some relaxation. Of course, a new not virtually enough remainder will unquestionably sorts create decrease in point of view, which could wounded this also with the provides you specially obtain. Receive a t least 8-10 hrs of remaining the night before any time a picture capture.The newest speak on the driveway is the Wall plug Location 2014 Variety. The idea contains several of the Hands Comes Present day using a 21st Century handle sleek 1970's ratios. Kors will take fairly neutral colors as well as makes them stand out having shine.The most popular ceramic watches for women using this assortment features a sensational mother-of-pearl contact and that is usually studded using deposits to add additional attention most of these captivating wristwatches. Several of the the majority of amazing watches through his collection attribute your MK Rose Precious metal Watch and also the MK White colored Ceramic Wristwatches for girls using Mum connected with Treasure Contact as well as Precious metal Glamour.Initially beginning from his or her own garments series, he or she before long had been a identify to be able to consider from the style current market. Many of the major store outfits shops worldwide commencing furnishing his apparel collection for ladies thus the level of popularity extended. Women all through the earth appreciated the process their clothing would match themselves and shortly he / she extended an acquaintance base in which presented the most important famous people around the world.Sewn Bags - Some type of stitched clutch i465 or maybe mini-handbag gives an awesome angle for an normally critical collection. Look for stunning exclusive types together with crayon-inspired tones to get a make use of kid a long time days and nights. That critical Fendi Stitched Baguette may attain consumers away from for the ideal start out.

Comment by stephanieg915 3 days ago

Vegetable bags have been well-known in excess of 3 decades in addition to kept liked. However it is gross sales jumped from the Eighties in addition to Nineteen nineties the good news is, consumers evolved into interested in it's benefits. These people realized this beneficial effects employing the idea everyday with mental and physical wellness.Bean bags certainly are a entertaining and comfy furnishings to use inside your home. You can actually crash and also fall onto it. It is like being placed in a big fluffy cloud that is inviting so that you can certainly sit down effectively upon it and also be relaxed. You'll have the sensation of being hugged and snuggled simply because it is in accordance your system.Bad relaxing position is among the aspects of which contribute to head aches, mutual and also returning pains, fretboard pains as well as depression. It becomes an exceptional ergonomic office pieces of furniture for many who have problems with these types of ailments. This relieves lean muscle and mutual strain that perhaps knowledgeable via continuous using a typical lounge chair for the duration of perform. This sort of lounge chair is actually recommended by simply medical professionals for a number of reasons. In line with them, it provides a lot more overall flexibility to its renter in sitting roles, permitting him to adjust his human body perfectly and also take it easy as well as be employed in any way to suit him or her. It also cradles this backbone when you sit on http://www.hermesbeltsbirkinkellybag.co.uk/ this thus it stimulates healthy posture which reinforces your wellbeing.This makes the perfect chair pertaining to expecting mothers. They often times struggle to be comfy in the normal seats. Immediately after delivery, it is still a common selection for nursing jobs moms that requires pliability in location themselves along with the baby through providing.The mind overall health can take advantage of this too. Research state that the item lowers depressive disorders in addition to psychological strain. The item also reduces headaches given that position promotes much better circulation from the program. This can be a primary reason the reason medical doctors usually are adding beanbags to their centers along with practices to enhance inside healing.This is usually beneficial to autistic youngsters who suffer from hypotonia, a disease of which damages muscle in addition to leads to lean muscle along with neural ailments. It offers any low-cost beneficial alternate for the kids that are suffering coming from sensory digesting problems. It's essential for weight-bearing physical exercises including weight-lifting using their arms and legs. This supplies physical reviews in which helps with a relaxing environment for your youngster to set up while keeping your focus his ideas and feelings.Buying beans bag on the web or even from stores provides each owner ease and comfort. They could can be found in various materials, dimension, colours as well as this fillers in though the comfortable think is still there. It'll always assure exciting, stillness and long numerous years of feeling relaxed.

Comment by stephanieg915 3 days ago



























Comment by sguerra376 1 day ago

























Comment by sguerra376 16 hours ago

Your point of view

You must be signed in to comment.