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

determine if a shared library is compiled as 32bit or 64bit

Terminal - determine if a shared library is compiled as 32bit or 64bit
libquery=/lib32/libgcc_s.so.1; if [ `nm -D $libquery | sed -n '/[0-9A-Fa-f]\{8,\}/ {p; q;}' | grep "[0-9A-Fa-f]\{16\}" | wc -l` == 1 ]; then echo "$libquery is a 64 bit library"; else echo "$libquery is a 32 bit library"; fi;
2010-03-07 04:24:08
User: birnam
Functions: echo grep sed wc
determine if a shared library is compiled as 32bit or 64bit

Determines the flavor of a shared library by looking at the addresses of its exposed functions and seeing if they are 16 bytes or 8 bytes long. The command is written so the library you are querying is passed to a variable up font -- it would be simple to convert this to a bash function or script using this format.


There is 1 alternative - vote for the best!

Terminal - Alternatives
file -L <library> | grep -q '64-bit' && echo 'library is 64 bit' || echo 'library is 32 bit'
2010-03-07 06:31:35
User: infinull
Functions: echo file grep
Tags: bash

file displays a files type

the -L flag means follow sym-links (as libraries are often sym-linked to another this behavior is likely preferred)

more complex behavior (*two* grep commands!) could be used to determine if the file is or is not a shared library.

Know a better way?

If you can do better, submit your command here.

What others think

Wow walking outside sporting the artist denims along with knee higher buckskin boots and your brand new leather-based carry handbag thrown all-around the shoulder. You appear absolutely dazzling, so you observe people considering an individual with face which state a person looks absolutely wonderful. In particular, males are virtually breaking their particular neck since they turn that they visit look towards you and just how spectacular you peer. Indeed, the jeans allow you to glimpse worked out and engaging, as well as the synthetic leather joint boot styles are hot, however i should let you within on a very little key because it is your darkish buckskin carry thrown around your shoulder joint maintain outfit altogether. Home theater system . have several lather luggage in our system when you learn you can adorn just about any ensemble from it to restore full. Something you might have not really deemed is just how you are going to cleanse, maintain, and ensure the robustness of your current buckskin luggage. We will take a look to get a quick minute on the way to take care of most of these buckskin gem stones, and make certain they last a very long time. The buckskin tote bag is definitely a flexible, sturdy, and durable form of tote. It could tolerate years of mistreatment and consequence but still glimpse totally great. Actually, it appears as though the leather bags which might be the most take down along with mistreated looks essentially the most stylish and funky. A very important factor you must know is the fact moisture and normal water include the primary foe against your leather-based handbag bags. Transformation result in your buckskin 100 % pure for you to sink faster than not shielding the item from being in the water. What happens is that whenever the natural leather bag bags receive drenched they take up h2o. This leads the handbag to tighten up mainly because it cures along with helps make the content extremely crisp and this will fracture very easily. When you begin to discover creases forming in your tote plus it chips then your bag comes apart and you ought to dispose of this.What you have to do is definitely work with unique forms of purifiers and scenarios in which guard the actual leather and earn will be water resistance. There are numerous natural leather cleaning up and also safeguarding solutions accessible that will enable you to complete only this. Should you stick to the information they are going to normally need lather within the answers, to allow it a few soak time period, and after that wash that dried up. The products can do a pair of things to safeguard the synthetic leather carrier bag from moisture. Firstly the answer features specific ingredients how the leather-based tissues will take up as well as hold on to, as well as certainly not cause harm to the actual leather-based. And once the bag gets soaked, it doesn't soak up the stream mainly because it has recently soaked up the particular wax. Next, these kinds of cleaning merchandise will leave a really slim film of your feel style of element at first glance of your respective natural leather handbag. This specific specific wax-like motion picture will give your purse the shiny appealing finish, as well as fight almost any moisture from being released primary exposure to the particular leather.You may wish to utilize a deeply restorative on your synthetic leather carrier handbag at least once each year http://www.hermesbeltsbirkinkellybag.co.uk/ , or even twice a year. Probably once per week it is best to clear off the synthetic leather from the dust or dirt that's gathered throughout the full week. All that you should carry out is definitely require a humid sponge as well as cleaning rag and wash off the leather. What things can transpire would be that the soil or dust in addition to collect in micro breaks on the surface in the buckskin along with work like sandpaper. Normally, this is precisely how splits get worse and switch straight into crying causing you to be toss the purse apart. There are some particular apply in rubber oral sprays that will make your synthetic leather tote incredibly water proof, and this is encouraged before every stormy period to safeguard the leather handbag with the on its way rainwater.If you actually seeking a brand-new purse and you're nearly confident what you long for to obtain then you will want to take into account buying a number of leather-based hand bags. goods.Find out there additional information, evaluations, and also availableness for natural leather totes at http://leathertotes.org

Comment by stephanieg915 3 days ago

Recently, a whole new craze of females originate from across the world: Over-sized handbag. A few opt for as they feel the idea neat, and some use them commercially their adaptability. If you haven't still bought one, here i will discuss our main reasons why every woman needs to have this kind of bag in their wardrobe. 1. Living space Oversized could handbags tend http://www.hermesbeltsbirkinkellybag.co.uk/ to be huge! You can place almost anything you'll need inside and still have a number of living space quit in it. You are listed your tips, budget, cardstock, extras, makeup products, telephone and all sorts of exactly what you need to your baby (should you have one) along with a section of the second half's material. With so significantly space for storing isn't any ponder that almost all girls have turn out to be dependent on this kind of wallet. 2. Overall flexibility An extra-large handbag can be simply transformed into a nappy bag or even a bag in places you can contain your current exercise equipment. They're clever and also have several spaces when you take your documents and also your baby's dairy inside similar bag with out them perhaps obtaining deeper. Now this is the thing that I get in touch with an operating women bag! 3. Trend Oversized girls handbags are back in style, if you decide to aim for a fashionable seem you need to need a minumum of one bag in this variety. It will not be well before you may entirely be in appreciate from it rather than desire to overlooked. In inclusion, they seem fantastic having almost any relaxed ensemble, you will find a two of trousers or maybe a smaller skirt with higher heeled shoes or boots. 4 They've created you appear slimmer If there will be something it's making females leaner, then you can bet in which merchandise definitely will become # 1 within a bit of time. And this occured using outsized handbags, too. Because they are big and ready, that they right away pull their particular awareness. And so, when individuals consider the one that features these individuals, by means of assessment together with the bag, the thing is that that individual way thinner. This is the better strategy I've observed which dropping a few pounds in the eyes connected with others without doing nearly anything! Large females handbags would be the ideal alternative for energetic ladies who want to have every one of the required items with them. They are often difficult often, but they are very beneficial and attractive, aren't do they really desire to stop trying?

Comment by stephanieg915 2 days ago


Comment by sguerra376 2 days ago


























Comment by sguerra376 1 day ago



























Comment by sguerra376 11 hours ago

Your point of view

You must be signed in to comment.