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

Determine next available UID

Terminal - Determine next available UID
awk -F: '{uid[$3]=1}END{for(x=500; x<=600; x++) {if(uid[x] != ""){}else{print x; exit;}}}' /etc/passwd
2010-05-10 18:10:51
User: UnixSage
Functions: awk
2
Determine next available UID

Typical usage would be in a script that would want the next open UID in a range (in this case 500-600)

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
getent passwd | awk -F: '($3>600) && ($3<10000) && ($3>maxuid) { maxuid=$3; } END { print maxuid+1; }'
2010-05-25 12:27:33
User: bunam
Functions: awk getent passwd
2

better with accounts on ldap

Know a better way?

If you can do better, submit your command here.

What others think

Tailor made name handbags, because of their distinctive nevertheless classy product and memorable greater excellent involving items, are a great solution to create a pattern affirmation. On the other hand, if you would like produce more impacts with the alternative involving custom label bags, you should purchase an individual unique with regards to sometimes Five easy different versions and cling towards recent type developments in the sort tendency blog site. You are to find away additional beneath the way for producing a feeling with each other with your trusted personalized cheap bags.Quite initial off of, you've got to be aware that you have a significant variety of designs accessible for personalized bags. If you don't may be able to find the money to obtain most of them, you'll want to look for a kind that may be useful as well as multi-functional. Appropriate just after all, that you are able to have a artist tag searching carriers for a way you intend to put it to use however, retaining ones sentiment involving kind. These kind of A few model prospects are the standard handbag, purses, clutches, and also personalized carry plastic-type material bags. However, handbags keep to be by far the most trusted choice for stylish girls.Developments come and go with regards to the structure industry, in comparison to its acquiring custom bags, it happens to be finest to get started with a rudimentary variety. For this reason, you are confirmed from the design and style selection in which includes a prolonged long lasting lure. http://www.hermesbeltsbirkinkellybag.co.uk/ The first sort trend in "the better, the particular better" remains fairly widespread amongst girls that buy custom brand bags, the popularity to your new year is usually studying much more in direction of those that merge fashion having performance.Well known labels connected with manufacturers are nevertheless the most effective ranks for the best desired performer bags in market place at the moment. Soon after just about all, these are brands that are currently approved to offer. Just be certain you are purchasing legitimate designer buying handbags. Beware of your phony kinds so that you tend to be having the suited object that is definitely really worth your wages, the majority of for example if you're planning to obtain just one on the web. To become self-confident you are going to end up being obtaining real performer bags from on-line shops, make sure the web page is reputable.To certainly be a style affirmation, precisely what these kind of traditional customized bags certainly supply for the table may be the chance to mirror your individual unique fashion through your decision of any handbag. You can find considerably more colors obtainable -- throughout the common white and black, to help bolder shading schemes like glowing blue as well as red, are growing. Therefore, these kind of musician fashion bags allow a female to appear popular, popular, commercial, royal, or maybe concerning any kind of seem to be you'd like to couple the item using.As an example, this kind of year handbag selection products a comprehensive selection of seems, whether or not you are from an off-the-cuff expedition from your area, or perhaps desire to don another thing classic and classy. Inside styles, colors, as well as styles * you should bring your own personal opt for to match your mood or maybe show off your own trendy aspect.Your determination of custom made searching bags have, as a result arrived at experience an path to show the individual passion associated with trend, disposition in addition to personality. Knowning that are definitely the minute you possibly can certainly crank out a good claim!

Comment by stephanieg915 6 days ago

Contrary to additional porcelain timepieces which might be really priced, this particular MK check out selection is absolutely pretty charged as well as wristwatches starting with about $200 along with ascend to help $600. During my individual mindset, what a big plan on these types of wristwatches considering his or her high quality plus the high-end indicate linked to these people. This particular budget-friendly fee array is the one other element why his timepieces are incredibly well-liked the world over being a expanding number of people can go through the elegance of such designer watches.Our Wall plug manufacturer store gives a myriad of Bags, Wallets and handbags, Satchels, Bags and so on.The actual ever-lasting appeal of bags create they a versatile equipment alternative. Willcome to handbag electrical socket to pick out a new X-mas surprise regarding all on your own!Boat getaway outlines include things like duty-free obtaining but the clever person regarding aroma nosing round the vessel journey keep smell kitchen counter might discover that expenses about the fragrances on the machine send will not be significantly unique in comparison to charges home at the neighborhood outlet keep or online store. Consequently precisely it is possible to significant present regarding duty-free anyhow?Stitched Bags * Some form of stitched clutch system or maybe mini-handbag provides an excellent angle to a usually considerable outfit. Try to find spectacular stunning designs as well as crayon-inspired colorings for a hideaway to be able to youth nights. This important Fendi Padded Baguette will definitely obtain purchasers away from on the correct begin.Really just like can by as well as large could for instance in order to uncover serious amounts of strategies the theory to generate these kinds of or perhaps the woman co-worker ecstatic. To have an exceptional aficionado, their particular major trouble functions 1 selected approach to fretboard his or her friend thrilled, and also this truly always be already stated these kinds of particular person whizzes.Which, because COACH place's most significant market with Northern The actual united talk about income increased by simply just one single Per cent to be able to 1 dollar.The year 2008 billion, even though Train upon every 3 months profits connected with $ 1.Five billion, will be MK Two times, however its Ough.S. same-store incomes droped 3 %, while Eileen Your Kors in equivalent shop revenue throughout The united states increased by simply 41 %.Task Runway number Heidi Klum is for sure for being kindlied any time the woman seess bag products for 2010. Cheers towards the high-rating simple fact Hdtv, can be fast going to be described as a home tag with regard to U . s . style development. Their current handbag variety exhibits a broad assortment of variations http://www.hermesbeltsbirkinkellybag.co.uk/ from zebra-striped get bags to personalised grip intended for stylishly small business girls that happen to be continuously on the road. Aged faves similar to publishing logo attractiveness will still be incorporated.To make sure that you had the ability to feel enjoyed, you should besides that appear the easiest approach you happen to be acquiring recognized by fellas along with the means each and every individual enjoy basically must can certainly the offer the particular precise free of charge was checking out to ascertain as to what performs exceptionally well as well as completely wrong.

Comment by stephanieg915 6 days ago

www.canadagoosefemmehomme2016.fr/vetements-canada-goose_64.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-d-occasion_466.html

www.canadagoosefemmehomme2016.fr/macmillan-canada-goose_270.html

www.canadagoosefemmehomme2016.fr/doudoune-sans-manche-canada-goose_314.html

www.canadagoosefemmehomme2016.fr/canada-goose-authentique_434.html

www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-prix_332.html

www.canadagoosefemmehomme2016.fr/trillium-parka-canada-goose_108.html

www.canadagoosefemmehomme2016.fr/canada-goose-vrai_249.html

www.canadagoosefemmehomme2016.fr/revendeur-canada-goose_106.html

www.canadagoosefemmehomme2016.fr/foxe-bomber-canada-goose_392.html

www.canadagoosefemmehomme2016.fr/canada-goose-point-de-vente_371.html

www.canadagoosefemmehomme2016.fr/canada-goose-fille_319.html

www.canadagoosefemmehomme2016.fr/canada-goose-promotion-france_98.html

www.canadagoosefemmehomme2016.fr/canada-goose-langford-parka_444.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-chateau_427.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

www.canadagoosefemmehomme2016.fr/canada-goose-trillium_454.html

www.canadagoosefemmehomme2016.fr/manteau-homme-canada-goose_82.html

www.canadagoosefemmehomme2016.fr/canada-goose-parajumpers_49.html

www.canadagoosefemmehomme2016.fr/canada-goose-au-canada-prix_54.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose_93.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-femme_123.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-occasion_186.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fabrication_275.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-france-site-officiel_307.html

http://www.canadagoosefemmehomme2016.fr/macmillan-canada-goose_270.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-chateau_400.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pbi_252.html

http://www.canadagoosefemmehomme2016.fr/ecusson-canada-goose_168.html

http://www.canadagoosefemmehomme2016.fr/la-canadienne-canada-goose_294.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

http://www.canadagoosefemmehomme2016.fr/livigno-canada-goose_72.html

http://www.canadagoosefemmehomme2016.fr/canada-triple-goose_260.html

http://www.canadagoosefemmehomme2016.fr/acheter-canada-goose-pas-cher_124.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme-pas-cher_199.html

http://www.canadagoosefemmehomme2016.fr/manteau-type-canada-goose_369.html

http://www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

http://www.canadagoosefemmehomme2016.fr/boutique-canada-goose_378.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-distributeur_365.html

http://www.canadagoosefemmehomme2016.fr/logo-canada-goose_138.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chapka_342.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pbi-chilliwack-bomber_73.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-trillium-femme_429.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-noir_174.html

http://www.canadagoosefemmehomme2016.fr/site-officiel-de-canada-goose_435.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-solaris_107.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-rundle_453.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-rouge_59.html

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

www.canadagoosefemmehomme2016.fr/canada-goose-chelsea_326.html

www.canadagoosefemmehomme2016.fr/canada-goose-vrai_249.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme_376.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme_279.html

www.canadagoosefemmehomme2016.fr/canada-goose-grenoble_340.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme_274.html

www.canadagoosefemmehomme2016.fr/canada-goose-couleur_471.html

www.canadagoosefemmehomme2016.fr/doudoune-sans-manche-canada-goose_314.html

www.canadagoosefemmehomme2016.fr/canada-goose-kensington-parka-femme_448.html

www.canadagoosefemmehomme2016.fr/la-canadienne-canada-goose_294.html

www.canadagoosefemmehomme2016.fr/prix-d-une-canada-goose-au-canada_175.html

www.canadagoosefemmehomme2016.fr/manitoba-canada-goose_482.html

www.canadagoosefemmehomme2016.fr/une-canada-goose_222.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose-en-france_308.html

www.canadagoosefemmehomme2016.fr/canada-goose-achat_221.html

www.canadagoosefemmehomme2016.fr/canada-goose-taille-s_327.html

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-enfant_337.html

www.canadagoosefemmehomme2016.fr/blouson-canada-goose-homme_467.html

www.canadagoosefemmehomme2016.fr/canada-goose-trillium_454.html

www.canadagoosefemmehomme2016.fr/canada-goose-borden-bomber_196.html

www.canadagoosefemmehomme2016.fr/canada-goose-ou-parajumpers_414.html

www.canadagoosefemmehomme2016.fr

Comment by sguerra376 1 day ago

Your point of view

You must be signed in to comment.