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

Arch Linux sort installed packages by size

Terminal - Arch Linux sort installed packages by size
paste <(pacman -Q | awk '{ print $1; }' | xargs pacman -Qi | grep 'Size' | awk '{ print $4$5; }') <(pacman -Q | awk '{print $1; }') | sort -n | column -t
2011-01-07 18:43:18
User: BruceLEET
Functions: awk column grep paste sort xargs
5
Arch Linux sort installed packages by size

This one-liner will output installed packages sorted by size in Kilobytes.

Alternatives

There are 7 alternatives - vote for the best!

Terminal - Alternatives
pacman -Qi $(pacman -Qq)|grep 'Name\|Size'| cut -d: -f2 | paste - - | column -t | sort -nk2
expac -S -H M "%m %n"|sort -n
2012-06-14 19:41:21
User: gtmanfred
Functions: sort
0

M is size in megabytes, man expac to see other sizes

%m is install size

%k is download size

pacman -Qi | grep 'Name\|Size\|Description' | cut -d: -f2 | paste - - - | awk -F'\t' '{ print $2, "\t", $1, "\t", $3 }' | sort -rn
2012-11-20 03:40:55
Functions: awk cut grep paste sort
0

This, like the other commands listed here, displays installed arch packages. Unlike the other ones this also displays the short description so you can see what that package does without having to go to google. It also shows the largest packages on top. You can optionally pipe this through head to display an arbitrary number of the largest packages installed (e.g. ... | head -30 # for the largest 30 packages installed)

Know a better way?

If you can do better, submit your command here.

What others think

Old-fashioned custom handbags are no longer the luxury that just your superstars have enough money. Every woman would like to have got a minumum of one handbag displaying a well used custom tag. Acquiring retro designer handbags is a incredible strategy for extending your current handbag assortment. If you're residing in Australia, you'll find a variety of stores supplying vintage designer handbags Modern australia.A handbag is central to the addition that will completes the fashionable and trendy appearance of women. The idea serves not merely just as one object to have ones basics, but is another vogue affirmation. It may be helpful to decide if the form bag will likely be used regularly or if you happen to be interested in purchasing pre-loved designer bag being a collectable. For anyone who is dolled up to have an occasion, your personal style will likely be partial in an scope, without a developer handbag, for instance Orlando Dior clutch system. It is declared that your handbag says a great deal concerning the type of human being you are. Actually, holding an antique luxurious bag could possibly establish the personality along with your sociable standing.When you're emptying your bank account about these kinds of classic, high-class designer handbags, be sure that you buy the best. You need to order from some sort of reputed vendor. The seller will be able to response your entire inquiries and also a track record of currently being trustworthy and reasonable. Additionally, by no means get anything that will be http://www.hermesbeltsbirkinkellybag.co.uk/ worn out or even tainted. A few wear and tear is a provided since it would likely create appeal towards the retro high-class bag. However an excessive amount bag harm may make the bag glimpse employed.A girl transporting a high end developer handbag, and that is classic in both era and elegance, speaks a great deal of your ex sociable position. In fact, retro artist natural leather handbags chat for ones societal status from the almost all convincing technique. You must ensure that designer handbags Questionnaire come in a harmonious relationship along with your attire. This would mean your antique, high end designer handbag runs properly using your ensemble. Vintage high-class bags are known for their sturdiness along with awesome models, and that is certainly the reason why of these immense acceptance between girls.If you want to acquire the very best old-fashioned artist handbags Modern australia at the best marketplace rates, visit obtenir.internet.dans.

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.