Prints the latest modified files in a directory tree recursively

find . -name '*pdf*' -print0 | xargs -0 ls -lt | head -20
Sorts by latest modified files by looking to current directory and all subdirectories
Sample Output
fuat$ find . -name '*pdf*' -print0 | xargs -0 ls -lt | head -20
-rwxrwxrwx@ 1 fuat  staff    2416379 Sep 30 22:36 ./Software Engineering/Book/debug_it.pdf
-rw-r--r--@ 1 fuat  staff     852248 Sep 30 00:14 ./_READING/NLPWithPython.pdf alias
-rw-r--r--@ 1 fuat  staff     852292 Sep 30 00:12 ./_READING/HeadFirstNetworking.pdf alias
-rw-r--r--@ 1 fuat  staff   16214242 Sep 24 16:20 ./Algorithms/Algorithms_for_Interviews.pdf
-rw-r--r--@ 1 fuat  staff    4349195 Sep 24 13:46 ./Java/General/JavaProgrammingFundamentals.pdf
-rw-r--r--@ 1 fuat  staff   11168880 Sep 24 13:34 ./Distributed System/1617290521_HBas.pdf
-rw-r--r--@ 1 fuat  staff    5920000 Sep 24 13:32 ./Stream Processing/Storm.pdf
-rw-r--r--@ 1 fuat  staff   13571530 Sep 24 13:24 ./Database/InMemoryDataManagement.pdf
-rw-r--r--@ 1 fuat  staff   12625760 Sep 24 13:13 ./Network/ComputerNetworkingTopDown.pdf
-rw-r--r--@ 1 fuat  staff    3290769 Sep 24 13:01 ./Algorithms/GraphAlgorithms.pdf
-rw-r--r--@ 1 fuat  staff   24854307 Sep 24 11:18 ./Java/OSGi/EnterpriseOSGiINAction.pdf
-rw-r--r--@ 1 fuat  staff   39195922 Sep 24 11:16 ./Operating System/OSXMountainLion.pdf
-rw-r--r--@ 1 fuat  staff    5593725 Sep 24 11:11 ./Software Engineering/Book/EffectiveUnitTesting.pdf
-rw-r--r--@ 1 fuat  staff    9917832 Sep 24 11:06 ./Stream Processing/Twisted.pdf
-rw-r--r--@ 1 fuat  staff   11022359 Sep 24 11:05 ./Message Queues/ZeroMQ.pdf
-rw-r--r--@ 1 fuat  staff    3155642 Sep 24 11:02 ./Source Control/Git35-672.pdf
-rw-r--r--@ 1 fuat  staff    4718051 Sep 24 10:59 ./Data Mining/RobustDataMining.pdf
-rw-r--r--@ 1 fuat  staff   38314681 Sep 24 10:55 ./Ruby/Rails515775.pdf
-rw-r--r--@ 1 fuat  staff   37028497 Sep 24 10:53 ./User Interface/11445Interactivity2nd.pdf
-rw-r--r--@ 1 fuat  staff    6139406 Sep 24 10:52 ./User Interface/UI_154783.pdf

1
By: fuats
2013-10-03 21:58:51

What Others Think

Here they discussed some of the codes that help in printing the latest modified files in a directory tree recursively so as the explanation is not that given I don't think that everyone can understand the code that you have discussed here more helpful hints
Kaitlyn · 76 weeks and 2 days ago
So thoughtful of you to share the details here. Adding the code along with the post made it easier to follow the instruction. construction software management Being new to the whole code having such detailed code offers a better understanding of the program.
browneclaire42 · 76 weeks and 2 days ago
The above command is used to print the latest modified files in a directory tree recursively. You can learn build your diamond ring so many such unix commands from here and this website is the perfect source for learning. I am looking here for more updates on that.
Alyssalauren · 43 weeks and 4 days ago
Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors! Pug Puppies for Sale Near Me PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas
rahimhh21 · 15 weeks ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 5 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. 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.

Share Your Commands



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: