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

Remove today's installed packages

Terminal - Remove today's installed packages
grep "install " /var/log/dpkg.log | awk '{print $4}' | xargs apt-get -y remove --purge
2009-04-06 13:06:04
User: skygreg
Functions: awk grep xargs
4
Remove today's installed packages

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
grep -e `date +%Y-%m-%d` /var/log/dpkg.log | awk '/install / {print $4}' | uniq | xargs apt-get -y remove
2010-01-12 09:42:22
User: skygreg
Functions: awk grep uniq xargs
Tags: Debian
8

Adapted using your usefull comments !

Know a better way?

If you can do better, submit your command here.

What others think

it's safer to grep for today's date. SO, grep and awk part should be replaced with the following

grep -e `date +%Y-%m-%d` /var/log/dpkg.log | grep install | awk '{print $5}' | uniq

then add xargs

Without mentioning the date, all packages installed since login will be removed, if i'm not wrong.

Comment by alperyilmaz 406 weeks and 6 days ago

The --purge isn't necessary. If that was left out, you could at least experiment with the command without losing config files from packages that are to be deinstalled.

On my ubuntu system, dpkg seems to rotate the /var/log/dpkg.log file every month, so the above command would *purge* anything you installed this calendar month.

Comment by bwoodacre 406 weeks and 6 days ago

Another useless use of grep. How about taking advantage of awk?

awk '/install / {print $4}' /var/log/dpkg.log
Comment by atoponce 406 weeks and 5 days ago

With all the excellent start involving Straight talk samsung Omnia En aning, Straight talk samsung offers earned on the minds of each and every cellular individual. The mobile phone comes equipped with a user friendly Straight talk Contact Wiz interface that will enjoy a person quickly touching as well as in contact with how you can different phone software.With a great Three.20 digicam, you may never pass up the most effective times you will ever have. The digital camera will also support Grin photo attribute which reflects subject areas for the most wonderful. Straight talk Omnia Lite also allows you to connect to others having Safari Being unfaithful.A few internet browser and that is 2.Half a dozen times quicker than Cell phone browser. Having HSDPA Three.Half a dozen Megabyte per second online connectivity, you may acquire records, images and also new music in mere matter of moments.Samsung Omnia En aning even offers powerful multi-media functions where you can down load superior quality movies without any difficulty. This kind of unit now offers text messaging capabilities such as Text messages, MMS, Im, Mail and many others. If you would like focus on Microsoft 'office', you'll be able to help total Ms office Selection Word, Shine, Power point and so on. So if you http://www.hermesbeltsbirkinkellybag.co.uk/ are interested to buy this awesome smartphone, check out Bag That These days is an Exclusive Internet shopping Keep within India in which an individual might locate major models on individual sales charges. That Online shop offers cheap deals with products like Cellphones, Cams, Televisions, Necklaces, Watches, Apparels, Electric products, Home Interior decor, Labeled Footwear, Top quality Bags etcetera. And you need to be an affiliate to shop on this website first. Membership rights cost nothing nevertheless through request only. Jump on towards the ready listing mobile phone . getting welcome or even inquire a buddy who's part to invite you actually.

Comment by stephanieg915 6 days ago

Should you buy females podium flip flops that planting season, the closet are not let down! The fashionable gladiator shoes outlined earlier mentioned are likewise trs fashionable after a little a good start, as proved with the interest in Giuseppe Zanottis I9179 System Shoe. Created and also exceptionally colored heels will also be cozy for ladies planting season time shoes this current year. Numerous brand name names, such as Christian Louboutin, Approximate, along with Seychelles, offer squeezes with vibrant designs along with rose hues, featuring yellows in addition to yellows. Wedges are additionally sizzling this particular spring. Giuseppe Zanottis I96166 Sand iron Pump motor, as an illustration, features a pair of spring season 2010s almost all favored boot models: an increased sand wedge and a active leopard printing.The technological know-how in the Physical exercise watch-making tradition is really a ensure regarding high quality along with accuracy. The grade of just about every Versace watch is definitely secured from the Physical exercise Made' jotting. Each and every wristwatch experiences strict orders and all of solutions to help detailed exams. Versace views package special designs for many who wish to get noticed.I have around Ten wrist watches in the Wall plug Porcelain ceramic Enjoy selection and also am constantly aiming to play a role in my selection. We have professionally positioned how the best location to receive these wrist watches arises from Amazon online because of the fact that does not just will Amazon . com provide you http://www.hermesbeltsbirkinkellybag.co.uk/ with the least expensive pace about these kind of wrist watches but their assistance along with shipping is actually unparalleled by sort of different dealer. On the other hand, before that we would likely hugely advise you to read as a result of in-depth critiques of those wristwatches before you make an acquiring selection.Resource Box: High-end wrist watches similar to DKNY examines present much better good quality along with dependability as compared to common process watches. Do not allow the price of top quality timepieces including really likes trick you. The fee is totally worth the cost.Balenciaga handbags are a handful of the most observed right after bags in the world. Balenciaga purses and handbags are manufactured by simply somebody of the most extremely revered designers in the market, Cristobal Balenciaga. He set up the world associated with Balenciaga in early 20th century in San Sebastian, The country as well as afterwards spread worldwide from there. Through the middle of the 1900s, Balenciaga received afflicted the particular crucial town places regarding Madrid along with Spain's capital plus in to help Venice. With its appreciated customs, Balenciaga remains to be to generate excellent neat and trendy bags nowadays.Holiday is usually a excellent time for a boat trip and also a ship trip is a great time to small sample brand-new perfumes. Which could look like any bounce to non-cruisers, even so people who aboard fishing boat getaway wrinkles realize that lots of boats currently have on-ship dress shops along with high-end in addition to area of expertise products. It's not necessarily unconventional for the luxury cruise liner shop to be able to inventory tons of great scents. Precisely what greater time for you to case brand-new aromas than on a speed boat excursion family vacation? However there are many reasons to obtain fragrance using a fishing boat trip dispatch.You can certainly moreover pick a few other style of bags including things like considerable motorola clutch bags as well as handbags in outstanding in addition to further demure autumn colors. There's also a wide variety connected with jet established totes, bags, clutch bags in a number of styles and colors. There's also attractive excellent apple ipad instances. The best ipad tablet due to this the fall is a brilliant lemon apple ipad tablet situation that will go well with my turtle neck of the guitar best.You could look at the well worth tag cloud also. If you find one point that you just a lot like, you might fit an order with the site. You'll undoubtedly realize that getting online has many of benefits. You might be only needed to pick the button causing all of the points that you just actually prefer will definitely show up at your physical location. For solely a compact volume, it's possible so that you can get the excellent involving items.

Comment by stephanieg915 6 days ago

www.canadagoosefemmehomme2016.fr/manteau-hiver-canada-goose_480.html

www.canadagoosefemmehomme2016.fr/canada-goose-langford_320.html

www.canadagoosefemmehomme2016.fr/canada-goose-paris_394.html

www.canadagoosefemmehomme2016.fr/canada-goose-grise-homme_468.html

www.canadagoosefemmehomme2016.fr/canada-goose-chateau_300.html

www.canadagoosefemmehomme2016.fr/prix-d-une-doudoune-canada-goose_390.html

www.canadagoosefemmehomme2016.fr/revendeur-canada-goose_106.html

www.canadagoosefemmehomme2016.fr/canada-goose-expedition-homme_207.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme_376.html

www.canadagoosefemmehomme2016.fr/canada-goose-promotion-france_98.html

www.canadagoosefemmehomme2016.fr/canada-goose-bordeaux_397.html

www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-enfant_337.html

www.canadagoosefemmehomme2016.fr/canada-goose-style_105.html

www.canadagoosefemmehomme2016.fr/goose-femme_52.html

www.canadagoosefemmehomme2016.fr/canada-goose-verte_154.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-homme_298.html

www.canadagoosefemmehomme2016.fr/canada-goose-kingston_424.html

www.canadagoosefemmehomme2016.fr/branta-canada-goose_271.html

www.canadagoosefemmehomme2016.fr/point-de-vente-canada-goose_304.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-rouge_59.html

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-france_142.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-longue-femme_272.html

Comment by sguerra376 3 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-montpellier_353.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-france-site-officiel_307.html

http://www.canadagoosefemmehomme2016.fr/bonnet-canada-goose_289.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-prix_243.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-a-vendre_404.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-champs-elysees_360.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-paris_394.html

http://www.canadagoosefemmehomme2016.fr/prix-d-une-canada-goose_130.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose-femme_206.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-fourrure_377.html

http://www.canadagoosefemmehomme2016.fr/manteau-type-canada-goose_369.html

http://www.canadagoosefemmehomme2016.fr/yukon-bomber-canada-goose_147.html

http://www.canadagoosefemmehomme2016.fr/site-officiel-de-canada-goose_435.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-trillium-femme_429.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-solde_198.html

http://www.canadagoosefemmehomme2016.fr/magasin-canada-goose-paris_39.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-blanc_171.html

http://www.canadagoosefemmehomme2016.fr/montebello-parka-canada-goose_287.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber_273.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-homme-pas-cher_199.html

Comment by sguerra376 2 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-chapka_342.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pbi-chilliwack-bomber_73.html

http://www.canadagoosefemmehomme2016.fr/yukon-bomber-canada-goose_147.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

http://www.canadagoosefemmehomme2016.fr/site-canada-goose_352.html

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-pas-cher_358.html

http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

http://www.canadagoosefemmehomme2016.fr/constable-canada-goose_67.html

http://www.canadagoosefemmehomme2016.fr/leboncoin-canada-goose_481.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-rouge_118.html

http://www.canadagoosefemmehomme2016.fr/bomber-canada-goose_240.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-doudoune_163.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-boutique-paris_167.html

http://www.canadagoosefemmehomme2016.fr/kensington-parka-canada-goose_257.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-solde_198.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-destockage_165.html

http://www.canadagoosefemmehomme2016.fr/

http://www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose-pas-cher_204.html

http://www.canadagoosefemmehomme2016.fr/jogging-canada-goose_399.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-banff_129.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse-prix_276.html

http://www.canadagoosefemmehomme2016.fr/foxe-bomber-canada-goose_392.html

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/fourrure-canada-goose_70.html

www.canadagoosefemmehomme2016.fr

www.canadagoosefemmehomme2016.fr/yorkville-canada-goose_463.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html

www.canadagoosefemmehomme2016.fr/achat-canada-goose-en-ligne_153.html

www.canadagoosefemmehomme2016.fr/canada-goose-promo_172.html

www.canadagoosefemmehomme2016.fr/canada-goose-foxe_91.html

www.canadagoosefemmehomme2016.fr/canada-goose-bleu_63.html

www.canadagoosefemmehomme2016.fr/acheter-canada-goose-paris_406.html

www.canadagoosefemmehomme2016.fr/selkirk-canada-goose_77.html

www.canadagoosefemmehomme2016.fr/manteau-comme-canada-goose_226.html

www.canadagoosefemmehomme2016.fr/manteau-type-canada-goose_369.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-paris_39.html

www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-sans-manche_166.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

www.canadagoosefemmehomme2016.fr/canada-goose-sans-fourrure_311.html

www.canadagoosefemmehomme2016.fr/canada-goose-marron_208.html

www.canadagoosefemmehomme2016.fr/victoria-parka-canada-goose_338.html

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-france_216.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-femmes_189.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme_274.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-site-officiel_188.html

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-homme-noir_115.html

www.canadagoosefemmehomme2016.fr/constable-canada-goose_67.html

www.canadagoosefemmehomme2016.fr/canada-goose-longue-homme_301.html

www.canadagoosefemmehomme2016.fr/canada-goose-��-paris_227.html

www.canadagoosefemmehomme2016.fr/gants-canada-goose_312.html

www.canadagoosefemmehomme2016.fr/acheter-canada-goose-montreal_351.html

www.canadagoosefemmehomme2016.fr/canada-goose-grande-taille_92.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka_61.html

www.canadagoosefemmehomme2016.fr/canada-goose-blanche_295.html

www.canadagoosefemmehomme2016.fr/canada-goose-chateau-noir_174.html

www.canadagoosefemmehomme2016.fr/acheter-doudoune-canada-goose_258.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme-pas-cher_419.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose_433.html

www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html

www.canadagoosefemmehomme2016.fr/veste-canada-goose_228.html

www.canadagoosefemmehomme2016.fr/rideau-canada-goose_303.html

www.canadagoosefemmehomme2016.fr/revendeur-canada-goose-france_401.html

www.canadagoosefemmehomme2016.fr/vente-doudoune-canada-goose-femme_197.html

www.canadagoosefemmehomme2016.fr/canada-goose-chateau-parka_247.html

www.canadagoosefemmehomme2016.fr/vrai-canada-goose-pas-cher_40.html

www.canadagoosefemmehomme2016.fr/canada-goose-boutique-paris_167.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-longue-femme_272.html

www.canadagoosefemmehomme2016.fr/canada-goose-lodge_76.html

www.canadagoosefemmehomme2016.fr/avis-sur-canada-goose_334.html

Comment by sguerra376 2 days ago

www.canadagoosefemmehomme2016.fr/canada-goose-doudoune-sans-manche-homme_291.html

www.canadagoosefemmehomme2016.fr/canada-goose-solaris_107.html

www.canadagoosefemmehomme2016.fr/ontario-canada-goose_96.html

www.canadagoosefemmehomme2016.fr/canada-goose-modele-victoria_409.html

www.canadagoosefemmehomme2016.fr/femme-canadian-goose_104.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-montebello_214.html

www.canadagoosefemmehomme2016.fr/canada-goose-montebello-parka_81.html

www.canadagoosefemmehomme2016.fr/canada-goose-snow-mantra_209.html

www.canadagoosefemmehomme2016.fr/canada-goose-montebello_383.html

www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html

www.canadagoosefemmehomme2016.fr/canada-goose-quebec_125.html

www.canadagoosefemmehomme2016.fr/bonnet-canada-goose_289.html

www.canadagoosefemmehomme2016.fr/prix-canada-goose-new-york_215.html

www.canadagoosefemmehomme2016.fr/parka-canada-goose-homme_376.html

www.canadagoosefemmehomme2016.fr/canada-goose-whistler_318.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme_191.html

www.canadagoosefemmehomme2016.fr/doudoune-longue-canada-goose_447.html

www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

www.canadagoosefemmehomme2016.fr/canada-goose-sherbrooke_245.html

www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

www.canadagoosefemmehomme2016.fr/resolute-canada-goose_116.html

www.canadagoosefemmehomme2016.fr/canada-goose-the-chateau_364.html

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/canada-goose-laval_347.html

www.canadagoosefemmehomme2016.fr/canada-goose-banff_129.html

www.canadagoosefemmehomme2016.fr/canada-goose-milan_99.html

www.canadagoosefemmehomme2016.fr/selkirk-canada-goose_77.html

www.canadagoosefemmehomme2016.fr/canada-goose-montreal_267.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme_44.html

www.canadagoosefemmehomme2016.fr/canada-goose-grise-homme_468.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-victoria_285.html

www.canadagoosefemmehomme2016.fr/canada-goose-kensington_86.html

www.canadagoosefemmehomme2016.fr/blouson-canada-goose-femme_143.html

www.canadagoosefemmehomme2016.fr/blouson-canada-goose-homme_467.html

www.canadagoosefemmehomme2016.fr/canada-goose-prix-canada_277.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-courte_322.html

www.canadagoosefemmehomme2016.fr/revendeur-canada-goose-france_401.html

www.canadagoosefemmehomme2016.fr/canada-goose-grande-taille_92.html

www.canadagoosefemmehomme2016.fr/blouson-goose-canada_195.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-prix_243.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-occasion_262.html

www.canadagoosefemmehomme2016.fr/canada-goose-freestyle_324.html

www.canadagoosefemmehomme2016.fr/canada-goose-fourrure-amovible_71.html

www.canadagoosefemmehomme2016.fr

www.canadagoosefemmehomme2016.fr/parka-banff-canada-goose_417.html

www.canadagoosefemmehomme2016.fr/manitoba-canada-goose_482.html

www.canadagoosefemmehomme2016.fr/soldes-canada-goose_137.html

www.canadagoosefemmehomme2016.fr/canada-goose-homme-solde_255.html

Comment by sguerra376 1 day ago

Your point of view

You must be signed in to comment.