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

Display summary of git commit ids and messages for a given branch

Terminal - Display summary of git commit ids and messages for a given branch
git log master | awk '/commit/ {id=$2} /\s+\w+/ {print id, $0}'
2009-01-28 13:32:08
User: root
Functions: awk
3
Display summary of git commit ids and messages for a given branch

Useful when quickly looking for a commit id from a branch to use with git cherry-pick.

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
git log --pretty='format:%Cgreen%H %Cred%ai %Creset- %s'
2009-09-25 19:18:37
User: levenbrech
1

In color. Additionally you may define in your ~/.gitconfig and run it just as 'git one':

one = log --pretty='format:%Cgreen%H %Cred%ai %Creset- %s'

Know a better way?

If you can do better, submit your command here.

What others think

Note that the blue dial color on the Bulgari Octo http://www.firstreplicarolex.co.uk/ is exclusively available (at least in 2015) on the Bulgari Octo 38 and not the larger Octo. The Bulgari Octo 38 is a smaller http://www.firstreplicarolex.co.uk/omega.html version of the Bulgari Octo which is normally 41mm wide. I prefer the 41, but there is a lot to say for the Bulgari Octo 38 for those who like a more demure look on their http://www.watchrex.co.uk/ wrist. Ironically enough, the Bulgari Bulgari and the Bulgari Octo are both Gerald Genta designs. In fact, most of the men's watch models at Bulgari http://www.imitation-watchess.com/ today are Genta designs - which once again speaks to the lasting influence of the http://www.firstreplicarolex.co.uk/Tag-Heuer.html 20th century's greatest watch designer.

Comment by jafanshen 7 weeks and 1 day ago

Your point of view

You must be signed in to comment.