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.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
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

Keep track of diff progress

Terminal - Keep track of diff progress
watch -d "ls -l /proc/$!/fd"
2014-01-31 23:51:17
User: flatcap
Functions: watch
1
Keep track of diff progress

You're running a program that reads LOTS of files and takes a long time.

But it doesn't tell you about its progress.

First, run a command in the background, e.g.

find /usr/share/doc -type f -exec cat {} + > output_file.txt

Then run the watch command.

"watch -d" highlights the changes as they happen

In bash: $! is the process id (pid) of the last command run in the background.

You can change this to $(pidof my_command) to watch something in particular.

Alternatives

There are 3 alternatives - vote for the best!

Terminal - Alternatives
lsof -c diff -o -r1 | grep $file
2014-01-29 18:35:28
User: d0g
Functions: diff grep
2

When running a long `diff -r` over folders, this simulates a "verbose" mode where you can see where diff is in the tree.

Replace $file with the first part of the path being compared.

Know a better way?

If you can do better, submit your command here.

What others think

Here http://www.huaracherunpas-cher.fr/nike-air-huarache-chaussures_80.html The Jervis Browsing Centre- http://www.huaracherunpas-cher.fr/nike-huarache-free-light_134.html The opening times to http://www.huaracherunpas-cher.fr/air-huarache-solde_40.html the Jervis Shopping http://www.huaracherunpas-cher.fr/air-huarache-femme_90.html Middle are usually Mon-Tue: http://www.huaracherunpas-cher.fr/huarache-og-2017_143.html 9am-7pm, Were http://www.huaracherunpas-cher.fr/chaussures-air-huarache_128.html married: 9am-8pm, Thurs: 9am-9pm http://www.huaracherunpas-cher.fr/nike-air-huarache-taille_172.html , Exclusive: 9am-8pm, Kommet: 9am-7pm in addition http://www.huaracherunpas-cher.fr/air-huarache-nike_87.html http://www.huaracherunpas-cher.fr/nike-air-huarache-prix_120.html to Sunlight: 11am-7pm. Many http://www.huaracherunpas-cher.fr/nike-huarache-pour-femme_155.html of the retailers http://www.huaracherunpas-cher.fr/air-huarache-homme_67.html while in the Jervis http://www.huaracherunpas-cher.fr/nike-huarache-usa_114.html Browsing Middle of the town are http://www.huaracherunpas-cher.fr/free-huarache_103.html generally, Marks & Spencer http://www.huaracherunpas-cher.fr/nike-air-huarache-original_144.html , This Jean http://www.huaracherunpas-cher.fr/nike-air-force-1-huarache_113.html Scene, Harry Ramsdens http://www.huaracherunpas-cher.fr/huarrache-blanche_135.html along with Perception Opticians. Places to http://www.huaracherunpas-cher.fr/nike-air-huarache-90_110.html eat/drink http://www.huaracherunpas-cher.fr/air-flight-huarache_68.html within the Jervis Purchasing Middle http://www.huaracherunpas-cher.fr/nike-huarache-1991_55.html are usually http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-rose_58.html , This Bagel Pub, http://www.huaracherunpas-cher.fr/nike-air-huarache-homme_150.html White castle, KFC, Costa Coffee along http://www.huaracherunpas-cher.fr/nike-air-huarache-pas-chere_161.html with Zumo http://www.huaracherunpas-cher.fr/nike-id-huarache_158.html Juices Clubhouse. For http://www.huaracherunpas-cher.fr/air-huarache-light_139.html further facts about http://www.huaracherunpas-cher.fr/nike-huarache-premium_126.html Your Jervis Buying Middle, call 07 878 http://www.huaracherunpas-cher.fr/nikeair-huarache_88.html 1321 http://www.huaracherunpas-cher.fr/air-max-huarache_39.html and also email [emailprotected] http://www.huaracherunpas-cher.fr/nike-huarache-femme-pas-cher_140.html The Rectangular Looking Centre- The http://www.huaracherunpas-cher.fr/nike-air-huarache-run_43.html outlet http://www.huaracherunpas-cher.fr/nike-air-huarache-international_104.html periods for your Rectangle Looking http://www.huaracherunpas-cher.fr/nike-huarache-2013_159.html Hub will be Mon-Wed: http://www.huaracherunpas-cher.fr/huarache-bleu_111.html 9am -6pm, http://www.huaracherunpas-cher.fr/nike-huarache-boutique_147.html Thurs-Fri: 9am-9pm, Sat: 9am-6pm along http://www.huaracherunpas-cher.fr/nike-air-huarache-1991_65.html with Sun: 12-6pm. http://www.huaracherunpas-cher.fr/huarache-noir_86.html For lender http://www.huaracherunpas-cher.fr/nike-air-flight-huarache-og_48.html vacations, your hub is http://www.huaracherunpas-cher.fr/nike-air-huarache-run-pas-cher_98.html open coming from 12noon-6pm. Roughly http://www.huaracherunpas-cher.fr/nike-air-huarache-beige_112.html One http://www.huaracherunpas-cher.fr/nike-huarache-magenta_51.html hundred sixty outlets through the Sq http://www.huaracherunpas-cher.fr/achat-nike-huarache_137.html . Browsing Centre. There are http://www.huaracherunpas-cher.fr/huarache-4_118.html several http://www.huaracherunpas-cher.fr/nike-huarache-marron_165.html common outlets in the Block http://www.huaracherunpas-cher.fr/huarache-nike-noir_149.html Searching Middle http://www.huaracherunpas-cher.fr/nike-huarache-solde_94.html of the town; many http://www.huaracherunpas-cher.fr/huarache-chaussures_95.html are Argos, Barretts http://www.huaracherunpas-cher.fr/nike-air-huarache-og_162.html , A new use, Beginning Discovering http://www.huaracherunpas-cher.fr/huarache-run_132.html Hub along with http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine_64.html Shoes Area. Eateries http://www.huaracherunpas-cher.fr/air-huarache-grise_142.html within the Block Buying http://www.huaracherunpas-cher.fr/nike-huarache-violet_54.html Centre are usually http://www.huaracherunpas-cher.fr/nike-huarache-prix_66.html Jack in the box, KFC, National http://www.huaracherunpas-cher.fr/huarache-leopard_77.html Ice cubes Holler http://www.huaracherunpas-cher.fr/air-huarache-og_71.html along with Zumo Juices http://www.huaracherunpas-cher.fr/nike-air-huarache-run-chaussures_174.html http://www.huaracherunpas-cher.fr/nike-air-huarache-safari_73.html Watering hole. As along with http://www.huaracherunpas-cher.fr/huarache-noir-et-blanc_96.html excellent shops http://www.huaracherunpas-cher.fr/nike-air-huarache-blanche_153.html along with restaurants, there's also http://www.huaracherunpas-cher.fr/nike-air-huarache-light-ultramarine-og_75.html a movie theater. This http://www.huaracherunpas-cher.fr/huarache-nike-blanche_127.html is suitable for http://www.huaracherunpas-cher.fr/huarache-2017_99.html individuals that desire to rest http://www.huaracherunpas-cher.fr/nike-huarache-ultramarine_125.html and savor a http://www.huaracherunpas-cher.fr/nike-air-huarache-retro_70.html motion http://www.huaracherunpas-cher.fr/nike-huarache-run_72.html picture after a extensive day of http://www.huaracherunpas-cher.fr/nike-huarache-run-pas-cher_61.html buying. Or buses http://www.huaracherunpas-cher.fr/huarache-bordeaux_53.html across the Sq http://www.huaracherunpas-cher.fr/nike-huarache-toute-noir_154.html . Buying Middle of the town http://www.huaracherunpas-cher.fr/nike-air-force-huarache_124.html is http://www.huaracherunpas-cher.fr/huarache-5_74.html quite very good, http://www.huaracherunpas-cher.fr/nike-huarache_93.html with regular coaches coming http://www.huaracherunpas-cher.fr/nouvelle-nike-huarache_82.html and going. For extra information from http://www.huaracherunpas-cher.fr/nike-air-huarache-light-pas-cher_44.html the http://www.huaracherunpas-cher.fr/nike-huarache-femmes_182.html Block Searching Heart, http://www.huaracherunpas-cher.fr/chaussures-huarache_56.html phone 01452 5944.Liffey Pit Shopping Centre- This http://www.huaracherunpas-cher.fr/nike-air-huarache-noir_97.html particular http://www.huaracherunpas-cher.fr/air-huarache-blanc_123.html searching centre is found for http://www.huaracherunpas-cher.fr/huarache-femmes_170.html the western http://www.huaracherunpas-cher.fr/nike-air-huarache-blanc_41.html from the metropolis http://www.huaracherunpas-cher.fr/nike-air-huarache-og-retro_101.html hub which is straightforward to are http://www.huaracherunpas-cher.fr/huarache-nike-pas-cher_79.html able http://www.huaracherunpas-cher.fr/huarache-montante_179.html to. You will discover http://www.huaracherunpas-cher.fr/huarache-free-run_145.html frequent busses all around Liffey http://www.huaracherunpas-cher.fr/nike-huarache-2_166.html Vly Browsing http://www.huaracherunpas-cher.fr/huarache-og_183.html Hub. There are various http://www.huaracherunpas-cher.fr/chaussure-air-huarache_180.html connected with extremely good retailers, http://www.huaracherunpas-cher.fr/huarache-acheter_83.html many are, Topshop, http://www.huaracherunpas-cher.fr/nike-huarache-beige_91.html Some sort of Wear http://www.huaracherunpas-cher.fr/nike-air-huarache-rouge_47.html , The particular http://www.huaracherunpas-cher.fr/nike-huarache-fille_148.html Parfum Retailer, Topman, Newlook followed http://www.huaracherunpas-cher.fr/nike-air-huarache-bleu_167.html by. http://www.huaracherunpas-cher.fr/air-huarache-run_157.html A number of http://www.huaracherunpas-cher.fr/nike-air-flight-huarache_102.html the services on Liffey Valley Purchasing Middle http://www.huaracherunpas-cher.fr/nike-huarache-jd_46.html of http://www.huaracherunpas-cher.fr/nike-air-huarache-turquoise_160.html the town consist of http://www.huaracherunpas-cher.fr/huarache-nike-chaussures_131.html vehicle parking, impaired amenities, general http://www.huaracherunpas-cher.fr/ public http://www.huaracherunpas-cher.fr/nike-air-huarache-mid_78.html cell phones and also http://www.huaracherunpas-cher.fr/air-huarache-noire_117.html ATMs. You can find above http://www.huaracherunpas-cher.fr/nike-huarache-noir-et-bleu_130.html 17 eateries while in http://www.huaracherunpas-cher.fr/nike-air-zoom-huarache_89.html the Liffey Valley http://www.huaracherunpas-cher.fr/nike-huarache-homme_141.html Shopping http://www.huaracherunpas-cher.fr/huarache-vintage_42.html Hub. Several of the a lot http://www.huaracherunpas-cher.fr/huarache-usa_100.html of well-known http://www.huaracherunpas-cher.fr/boutique-nike-huarache_151.html locations are Costa http://www.huaracherunpas-cher.fr/huarache-light-og_105.html Coffee, Jack in the box http://www.huaracherunpas-cher.fr/nike-huarache-taille_49.html , Bagel Club, http://www.huaracherunpas-cher.fr/nike-huarache-paris_69.html KFC, O'Briens plus Garlic bread Hut. http://www.huaracherunpas-cher.fr/basket-nike-huarache_45.html Liffey http://www.huaracherunpas-cher.fr/nike-huarache-free-run-2012_146.html Pit Looking Centre includes a http://www.huaracherunpas-cher.fr/huarache-noir-et-rose_109.html VUE cinema, http://www.huaracherunpas-cher.fr/nike-air-huarache-2_92.html having Fourteen verification bedrooms. http://www.huaracherunpas-cher.fr/nike-huarache-light-og_115.html The Dundrum Browsing http://www.huaracherunpas-cher.fr/chaussure-nike-air-huarache_76.html Centre- This kind of purchasing http://www.huaracherunpas-cher.fr/huarache-noir-femme_60.html heart has several http://www.huaracherunpas-cher.fr/nike-huarache-free-run-pas-cher_156.html shops starting from http://www.huaracherunpas-cher.fr/nike-huarache-agassi_133.html shoes or boots to eye health http://www.huaracherunpas-cher.fr/huarache-instagram_169.html care. http://www.huaracherunpas-cher.fr/nike-huarache-leopard_57.html Several of the lots http://www.huaracherunpas-cher.fr/nike-huarache-blanc_85.html of merchants inside Dundrum Shopping http://www.huaracherunpas-cher.fr/nike-air-huarache-light_168.html Hub tend to http://www.huaracherunpas-cher.fr/chaussures-huarache-nike_152.html be Wrap Rack, http://www.huaracherunpas-cher.fr/nike-huarache-3_108.html River Isle, Retreat http://www.huaracherunpas-cher.fr/nike-huarache-id_164.html , Aldo, Sea-coast, Next http://www.huaracherunpas-cher.fr/acheter-huarache_84.html along with Clarks. http://www.huaracherunpas-cher.fr/nike-huarache-chaussures_129.html With so many http://www.huaracherunpas-cher.fr/nike-huarache-light-ultramarine_171.html places to eat within http://www.huaracherunpas-cher.fr/nike-air-huarache-solde_181.html the Dundrum Buying Center, it can http://www.huaracherunpas-cher.fr/nike-huarache-safari_52.html be definitely http://www.huaracherunpas-cher.fr/air-nike-huarache_107.html not possible http://www.huaracherunpas-cher.fr/huarache-beige_106.html to shed your own http://www.huaracherunpas-cher.fr/basket-huarache_63.html appetite. A few of the http://www.huaracherunpas-cher.fr/nike-huarache-rouge_81.html well-known restaurants from http://www.huaracherunpas-cher.fr/nike-air-max-huarache-hybrid_121.html the Dundrum Purchasing http://www.huaracherunpas-cher.fr/huarache-light_50.html Center include things http://www.huaracherunpas-cher.fr/huarache-chaussure_122.html like Brambles, KFC, Milano, Jack in http://www.huaracherunpas-cher.fr/huarache-air-max_163.html the box, Garlic http://www.huaracherunpas-cher.fr/huarache-enfant_62.html bread Hut plus http://www.huaracherunpas-cher.fr/nike-huarache-gris_59.html Nando's. The opening periods for http://www.huaracherunpas-cher.fr/air-huarache-paris_138.html any Dundrum Shopping http://www.huaracherunpas-cher.fr/chaussure-huarache-nike_173.html Middle of the http://www.huaracherunpas-cher.fr/air-huarache-noir_116.html town are generally Mon-Fri: 9am-9pm, Seated: 9am-7pm in addition to Sunlight: 10am-7pm. There are actually standard lines round the Dundrum Shopping middle. For further home elevators a Dundrum Buying Centre call up 01 2991700. Each purchasing centre offers you just not a superb trip, but will also an awesome searching encounter. There are lots merchants to have missing set for everybody that outings Dublin incredible purchasing centers.

Comment by scott154 7 weeks ago

Your point of view

You must be signed in to comment.