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

Get information on your graphics card on linux (such as graphics memory size)

Terminal - Get information on your graphics card on linux (such as graphics memory size)
lspci -v -s `lspci | awk '/VGA/{print $1}'`
2010-10-26 17:45:14
User: infinull
Functions: awk lspci
Get information on your graphics card on linux (such as graphics memory size)

probably only works if you have one graphics card.

used this: http://www.cyberciti.biz/faq/howto-find-linux-vga-video-card-ram/

as reference

can be expanded, for example:

lspci -v -s `lspci | awk '/VGA/{print $1}'` | sed -n '/Memory.*, prefetchable/s/.*\[size=\([^]]\+\)\]/\1/p'

will just get the amount of prefetchable memory

compare to:

lshw -C display

which does not give the size (it does give byte ranges and you could calculate the size from that, but that's a pain)

Also uses a command which is not standard on linux; wheras lspci is a core utility provided by most systems


There are 2 alternatives - vote for the best!

Terminal - Alternatives
for I in `/sbin/lspci |awk '/VGA/{print $1}'`;do /sbin/lspci -v -s $I;done

Know a better way?

If you can do better, submit your command here.

What others think

Soon after planning for that prefers connected with Von Nederlander Old ones, which can be pretty sure how the France developer Christian Audigier is aware the trail. This information possesses led to a need to make their particular distinctive collection, and this motivation will be described inside clothes series Erectile dysfunction Hardy clothes and accessories using the operate connected with skin icon artisan Don Erectile dysfunction Resistant.It is apparent through checking out the series Audigier bags hand bags as well as backpacks, not only the style on the side of ones series. Furthermore, it looks for to create a collection that's comfortable and also beneficial.Very frequently, the actual custom handbags aren't made with anyone at heart. These are made in shapes difficult. They are not sufficiently little to get practical for an evening, however they are not huge ample for use http://www.hermesbeltsbirkinkellybag.co.uk/ any time moving over from the tour or even right away. Also, they frequently have got pouches or perhaps segment may appear practical when you shop, but really only utilized for design.Ed Sturdy bags are not the same. There are many school bags and bags in addition to bags, as being the perfect bag for one night. Some feature a coordinating bag, for example Impotence problems Resistant Corduroy Desiree Bag. Impotence Resistant helps make bags for all occasions, and it is difficult to get one thing your own not necessarily on-line. They're ideal for modern downtown existence.With the powerful design, brilliant and authentic information they're capable to place the bag in the herd is an additional with the excellent popular features of the line associated with Impotence problems Robust. You can go away understanding they have a bag that is certainly equally sensible and classy, particularly with companies Impotence problems Sturdy Sally Bag offered data transfer rate.Ed Resistant bags will automatically currently have what you need, should you go on a refreshments and out a sublime evening hours tropical drink having good friends. These kind of movies and bags require, because summertime is full with out a bag in the completely new type of Impotence problems Resistant.Copyright.

Comment by stephanieg915 13 hours ago

Male impotence Sturdy tattoo artwork has become a vogue phenomenon along with trademark style of individuals who get pleasure from artistic appearance of tattoo fine art. The actual logo Impotence problems Resistant Handbags regarding fall and winter This year provide a one of a kind number of popular handbags exhibiting your tattoo design fine art involving Wear Impotence Hardy. Generated for those who adore tattoo design art and high fashion, or perhaps a great edgy and various search handbags, the collection connected with Impotence Robust Handbags for winter and fall delivers bags for many character as well as fashion varieties. A preferred selection from the collection of Impotence problems Sturdy Handbags pertaining to fall and winter This year are the classy and stylish Filina Satchel. The trendy tattoo art ornamented handbag carries a traditional western style emphasized simply by colorful as well as perimeter information. The Erectile dysfunction Healthy personal brand can also be presented for the Filina Satchel out of the box this famous Impotence problems Hardy tattoo fine art illustrating wagering action adornments, computer hardware, along with a zipper pull and switches by having the Impotence problems resistant concept. The Filina Satchel is made of materials having a suede reduce boasting a zipper http://www.hermesbeltsbirkinkellybag.co.uk/ stoppage with top. For sale in navy blue or hourra along with black the Impotence Healthy handbag with regard to winter and fall The year of 2010 stores for $305.50.Another exceptional selection of popular handbags from the collection of Impotence Sturdy handbags regarding winter and fall This year is the Tyla Satchel. This is a very exclusive and feminine however edgy bag. One of many outstanding attributes would be the skin icon art which usually explains some sort of flower emphasized by means of rhinestone features. Constructed from rinsed canvas using leather lean, the Tyla Satchel carries a prime scoot closure, precious metal strengthen hardware, an integral fob with Male impotence Resistant embroidery, as well as accentuating Lurex threading. Your Tyla Satchel from the number of Ed Robust handbags intended for fall 2009 The year of 2010 is sold for about $275.50. The Ed Healthy Relationship Perimeter Hobo is a particularly preferred handbag in the variety of Impotence Sturdy handbags pertaining to winter and fall 2010. Built on the similar traces while popular created handbags the Love Existence Perimeter Hobo is a lot like hippie handbags extremely popular Sixties through the70's. Various other important features contain decorative edges, tattoo model artwork, best zip drawing a line under, an adaptable glenohumeral joint tie regarding ease, inner surface pockets, as well as this Erectile dysfunction Healthy brand. Easily obtainable in rare metal The Love Living Perimeter Hobo with the bunch of Ed Healthy handbags for winter and fall This year is available in gold in addition to lso are tails intended for $320.00. To find out more visit the Have on Impotence Resistant standard web page.Today, you can observe Male impotence Hardy merchants occasionally especially worldwide. If you intend to select a new Male impotence Sturdy Item as a present for the family members along with pals, a on the net, merely check out the actual Ed Healthy web shop for much more savings along with keep money quickly! All the best!

Comment by stephanieg915 1 hour ago

Your point of view

You must be signed in to comment.