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

LIST FILENAMES OF FILES CREATED TODAY IN CURRENT DIRECTORY

Terminal - LIST FILENAMES OF FILES CREATED TODAY IN CURRENT DIRECTORY
find -maxdepth 1 -mtime 0 -type f
2010-07-30 01:56:34
User: adeverteuil
Functions: find
2
LIST FILENAMES OF FILES CREATED TODAY IN CURRENT DIRECTORY

Then pipe to 'xargs ls' for a familiar listing, possibly using find's -print0 and xarg's -0 options.

Alternatives

There are 7 alternatives - vote for the best!

Terminal - Alternatives
ls -l --time-style=+%Y-%m-%d | awk "/$(date +'%Y-%m-%d')/ {print \$7}"
2010-07-29 05:30:29
Functions: awk ls
1

This version eliminates the grep before the awk, which is always good. It works for GNU core utils and ensures that the date output of ls matches the format in the pattern match, regardless of locale, etc.

On BSD-based systems, you can easily eliminate both the grep and the awk:

find . -maxdepth 1 -Btime -$(date +%kh%lm) -type f

TODAY=`date +"%b %d"`;ls -l | grep "$TODAY" | awk '{print $9}'
ls -la | grep $(date +%Y-%m-%d) | egrep -v -e '\.{1,2}' | sed "s/.*\:[0-9]\{2\} \(.\+\)$/\\1/g"

Know a better way?

If you can do better, submit your command here.

What others think

+1 for claudelepoisson

a variation of his command runs for several years on several Zope servers that I administer

find / Protocol /-type f-mtime paflow +5 | xargs tar-cvf / var / dump-protocol / `date '+% m% d% Y'_archive. tar `

Comment by 0disse0 259 weeks ago

The actual Pandora Diamond jewelry variety of Macram ornament provide a rainbow-like shade plan of colors which includes dark-colored, khaki, reddish, off-white, gray, orange as well as white. Their particular popular aesthetic is fully gone by means of lashings involving both 14ct Precious metal or even 925 Hallmarked Gold about completions with the band. Age-old nevertheless modern-day, every single perfectly precise The planet pandora Jewelry macram bracelet carry A few several hours to complete. The anklet bracelets may be accentuated that has a single bead as well as clip, offering the opportunity for that wearer to help have a specific favorite such as a golden or maybe hold dear studded portion.Michael Kors BagsThe carry bags furthermore consist of inside purses created to hold smart phone and also important engagement rings or even fobs to aid keep secrets within uncomplicated opportunity. If you are looking a visit to the wall plug as well as to work, there exists a form of bag that can definitely maintain all of your current objects, though causing you to be look great as well.Attention to help details, enthusiasm in addition to devotion are usually Versace's almost all distinguishing qualities. This wrist watch libraries espouse the emblem name's attraction, the actual preciseness involving Switzerland watch-making as well as the beauty of German high quality necklaces. They will integrate Switzerland preciseness design and style having Chinese design and style. Admiration for convention integrate which has a continuous seek out efficiency along with Versace excels because of its impassioned investigation on the meaning and making use of involving signs as well as different goods and also stones.You will certainly view once you begin ones seek the Swatch looks forward to to feature for a series is that they possess 5 various members of the family where their own designer watches usually are acknowledged, Piece of fabric Genuine ones, Piece of fabric Paradox, Swatch Pores and skin, Swatch Overcome, in addition to Swatch Bijoux. Swatch genuine ones are extremely the plastic material cased designer watches available in various types, shapes, as well as sizes. The Piece of fabric Contradiction tend to be metallic cased watches. Swatch Epidermis has a resemblance to the instance Old ones only the plastic is really a lot finer generating the wrist watch brighter. Piece of fabric Defeat could be the electric distinctive line of watches. Your Swatch Bijoux lines are your equipment brand.You could have a look at the online world inside circumstances you desire recognize included relating to Handbags Electric outlet Handbags. You'll definitely locate a variety of web page that discover concerning Handbags Wall structure stopper. Beyond the facts, you could take phone pics additionally. You might check every one of the photographs, designs, shades along with measurements of the bags.If you might be keeping any colder site, or preparing to visit to an amazing region in X-mas Holidays, next investing in a classy winter weather layer is absolutely important. Developers usually are damageding their marbles to offer their full capacity particularly in relation to its outerwear for female. A lot of brand-new gadgets were being noticed in fall/winter 2009/2010 runways from Ruskies identified cellular levels, for you to eternal camel colored tones, in addition to cocoon patterns. Should you have really made give it your all receive a winter weather length of time coating afterwards it truly is forced to understand accurately simply the points that is inside in the course of such as design and style craze. You can come up with a layout declaration simply by confessing most of these developer type style gadgets with winter months a few months layers.Evaluate the web based on the internet search engine ranking positions of the Online Website" Because you search the net for acquiring footwears, look into the to-do report on sites that come in top ranks inside on the internet online internet search engine result web site. Throughout circumstances you want particular Footwears component out and about that will in your search questions.Every watch is built to hand mirror the mandatory spirit regarding Versace. Versace's making use of involving cherished and complex gems within their watches and add-ons are sizeable associated with Versace design. The timepiece patterns are additionally recognized simply by organised lines and also typical style and colors such as Greek fusses along with the Medusa. In these watches, classical looks satisfies your essence of the current planet, setting http://www.hermesbeltsbirkinkellybag.co.uk/ up a noticeably modern-day and also desirable style.

Comment by stephanieg915 1 day ago

Your point of view

You must be signed in to comment.