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

Find the package that installed a command

Terminal - Find the package that installed a command
whatinstalled() { which "$@" | xargs -r readlink -f | xargs -r dpkg -S ;}
2016-11-08 20:59:25
User: pdxdoughnut
Functions: readlink which xargs
4
Find the package that installed a command

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
whatinstalled () { local cmdpath=$(realpath -eP $(which -a $1 | grep -E "^/" | tail -n 1) 2>/dev/null) && [ -x "$cmdpath" ] && dpkg -S $cmdpath 2>/dev/null | grep -E ": $cmdpath\$" | cut -d ":" -f 1; }
2016-11-08 16:13:10
User: lordtoran
Functions: cut grep tail which
0

Put this one-line function somewhere in your shell init, re-login and try

whatinstalled <command>

This is an elaborate wrapper around "dpkg -S", with numerous safeguards. Symlinks and command aliases are resolved. If the searched command is not an existing executable file or was installed by some other means than dpkg/apt, nothing is printed to stdout, otherwise the package name.

Know a better way?

If you can do better, submit your command here.

What others think

Kunjungi:

http://www.ibet44cash.com">bandar bola Ibet44cash, http://www.interwin.net/id">judi online Interwin, http://www.mega389.com">judi online mega389, http://www.m88club.net">agen sbobet m88club, http://www.sbobet138.com">agen sbobet Sbobet138, http://www.nagaemas88.com">agen sbobet NagaEmas88, http://www.senimovie.com">nonton movie Senimovie, http://www.pokermon24.com">poker online Pokermon24, http://www.idola188.net">agen sbobet idola188, http://www.poker5star.net">poker online Poker5star, http://www.armanitogel.com">prediksi togel Armanitogel

Comment by enywinasari 9 weeks and 2 days ago

[url=http://www.longchampoutletstore.org/][b]Longchamp Outlet Store[/b][/url]

[url=http://www.nfljerseys.us/][b]NFL Jerseys[/b][/url]

[url=http://www.yeezyboost350.us.com/][b]Yeezy Boost 350[/b][/url]

[url=http://www.jordan4.us/][b]Jordan 4[/b][/url]

[url=http://www.nikeoutletsstore.com/][b]Nike Outlet[/b][/url]

[url=http://www.longchampbags.us.com/][b]Longchamp Handbags[/b][/url]

[url=http://www.airmax2016.us.com/][b]Nike Air Max 2016[/b][/url]

[url=http://www.adidas-uk.org.uk/][b]Adidas UK[/b][/url]

[url=http://www.yeezys.org/][b]Yeezys[/b][/url]

[url=http://www.underarmouroutlet.us.com/][b]Under Armour Outlet[/b][/url]

[url=http://www.timberlanduk.org.uk/][b]Timberland UK[/b][/url]

[url=http://www.jordan12.us/][b]Jordan 12[/b][/url]

[url=http://www.poloralphlaurenoutlets.us.com/][b]Polo Ralph Lauren Outlet Online[/b][/url]

[url=http://www.yeezy-shoes.us.com/][b]Yeezy[/b][/url]

[url=http://www.nikeoutlet.org.uk/][b]Nike Outlet[/b][/url]

[url=http://www.nikehuarache.us/][b]Nike Huarache[/b][/url]

[url=http://www.kedsshoesforwomen.com/][b]Keds Shoes For Women[/b][/url]

[url=http://www.nikerosherun.us.com/][b]Roshe Run[/b][/url]

[url=http://www.yeezy.com.co/][b]Yeezy Shoes[/b][/url]

[url=http://www.nikeairmax.us/][b]Nike Air Max[/b][/url]

[url=http://www.oakleyoutlet-sale.us/][b]Oakley Outlet[/b][/url]

[url=http://www.adidasnmd.us.com/][b]Adidas NMD[/b][/url]

[url=http://www.rayban-outlets.com/][b]Ray Ban Outlet Store[/b][/url]

[url=http://www.cheap--jordanshoes.us.com/][b]Jordan Shoes[/b][/url]

[url=http://www.outlettoms.us/][b]Toms Outlet[/b][/url]

[url=http://www.ultraboostuncaged.us/][b]Ultra Boost Uncaged[/b][/url]

[url=http://www.mlb-jerseys.us/][b]MLB Jerseys[/b][/url]

[url=http://www.uggboots-outlets.com/][b]Ugg Boots Outlet[/b][/url]

[url=http://www.katespadeoutlets.us/][b]Kate Spade Outlet[/b][/url]

[url=http://www.uggbootsclearanceoutlet.us/][b]Ugg Clearance Sale Outlet[/b][/url]

[url=http://www.uggs-outletboots.us/][b]Uggs Boots Outlet[/b][/url]

[url=http://www.timberland-outlet.us/][b]Timberland Outlet[/b][/url]

[url=http://www.ray-banoutlets.us/][b]Ray Ban Outlet[/b][/url]

[url=http://www.rayban-sunglasses.ca/][b]Ray Ban Sunglasses[/b][/url]

[url=http://www.adidas-nmd.org.uk/][b]Adidas NMD[/b][/url]

[url=http://www.katespadeoutlet.us.org/][b]Kate Spade Outlet[/b][/url]

[url=http://www.ralphlaurens.org.uk/][b]Ralph Lauren[/b][/url]

Comment by lovelin1987 9 weeks ago

http://webline.mobi/" title="هاست رايگان">هاست رايگان

http://webline.mobi/" title="هاست و دامنه رايگان ">هاست و دامنه رايگان

http://webline.mobi/" title="خريد هاست">خريد هاست

http://webline.mobi/host-linux/" title="هاست لينوکس سي پنل ">هاست لينوکس سي پنل

http://webline.mobi/vps/" title="خريد سرور مجازي ">خريد سرور مجازي

http://webline.mobi/dedicated-server/" title="خريد سرور اختصاصي ">خريد سرور اختصاصي

http://mrandroid.org/" title="طراحي وب">طراحي وب

http://mrandroid.org/" title="طراحي وب دايناميک">طراحي وب دايناميک

http://mrandroid.org/" title="طراحي وب سايت ">طراحي وب سايت

http://mrandroid.org/web-design/" title="طراحي وب ? طراحي وبسايت ">طراحي وب ? طراحي وبسايت

http://mrandroid.org/logo-design/" title="طراحي لوگو">طراحي لوگو

http://mrandroid.org/production-android-app/" title="ساخت برنامه اندرويد">ساخت برنامه اندرويد

http://mrandroid.org/motion-graphics/" title="موشن گرافيک">موشن گرافيک

http://mrandroid.org/increase-guarantees-install-android-apps/" title="افزايش نصب تضميني برنامه اندرويدي">افزايش نصب تضميني برنامه اندرويدي

http://asiafitbazokar.com/" title="کلينيک کاشت مو و ابرو ">کلينيک کاشت مو و ابرو

http://asiafitbazokar.com/" title="کلينيک کاشت مو">کلينيک کاشت مو

http://asiafitbazokar.com/" title="کلينيک کاشت ابرو">کلينيک کاشت ابرو

http://asiafitbazokar.com/eyebrow-transplantation/" title="کاشت ابرو">کاشت ابرو

http://asiafitbazokar.com/hair-transplant/" title="کاشت مو">کاشت مو

Comment by cloner007 7 weeks ago

Please kindly take a look if any items you need now or like to collect.

All Brands shoes available! Like Adidas, Asics, Coverse, MBT, New Balance, Nike, Skechers, Timberland

Those shoes are 100% authentic. You can enjoy free shipping and no tax.

Welcome to check our store and contact us, we are here for your best service always.

http://www.airjordanhorizonwomen.cc

http://www.mbtkimondomen.cc

http://www.nikekyrie2.cc

http://www.mbtkisumu.cc

http://www.nikemagistaiitf.cc

http://www.suprableekerwomen.cc

http://www.timberland6inchbootsshoes.cc

http://www.adidasmessi15-1ag.cc

http://www.adidasyeezyboost350women.cc

http://www.airjordanjumpmanteamiimen.cc

http://www.airjordanrevealmen.cc

http://www.nikezoomascentionmen.cc

http://www.mbtkitabugtxshoes.cc

http://www.nikeairmaxtailwind7.cc

http://www.nikemagistaobrafg.cc

http://www.adidasmessi16ag.cc

http://www.mbtkisumu2.cc

http://www.adidasmessi16fg.cc

http://www.adidasace16purecontrol.cc

http://www.airjordan6lowchrome.cc

http://www.jordancp3viiiae.cc

http://www.mbtkifundomen.cc

http://www.nikeairmaxmotionlw.cc

http://www.nikehypervenomxic.cc

http://www.nikeroshetwo2016.cc

http://www.adidaskaiser5fg.cc

http://www.nikeairjordanflight45.cc

http://www.nikeairmoreuptempomen.cc

http://www.mbtkimondogtx.cc

http://www.nikeairmaxplustxt.cc

http://www.nikeroshetwoflyknitshoes.cc

http://www.nikehypervenomxproximotf.cc

http://www.adidaskaiser5tf.cc

http://www.airjordanflight89.cc

http://www.nikeairyeezytwo.cc

http://www.airjordan3men.com

http://www.adidasjohnwall2men.com

http://www.mbtflameshoes.com

http://www.nikeairforceone25thlow.com

http://www.nikeairmax90men.com

http://www.nikefreeflyknit5nsw.com

http://www.nikerosherunbr.com

http://www.nikeelasticofinaleiiistreettf.com

http://www.sauconyshadow6000shoes.com

http://www.timberlandchukkabootscheap.com

http://www.adidasultraboost2.com

http://www.adidasclimacoolfreshbounce.com

http://www.adidasoriginalsnmdc1.com

http://www.adidasoriginalszx8000.com

http://www.adidasstansmithprimeknit.com

http://www.adidasace16fg.com

http://www.cheapairjordan4retroog.com

http://www.airjordanwestbrookmen.com

http://www.mbtforagtxwomen.com

http://www.nikeairforceone30th.com

http://www.nikeairmax95womens.com

http://www.nikefreeinnevawoven.com

http://www.nikerosherundmb.com

http://www.nikeelasticoproiiiic.com

http://www.timberlandclassicoxfordmen.com

http://www.adidasultraboostolympic.com

http://www.adidasoriginalsnmdr1.com

http://www.adidasoriginalszx9000.com

http://www.juicexadidasconsortiumstansmith.com

http://www.adidassuperstar2shoes.com

Comment by bertcarl1987 6 weeks and 1 day ago

Please kindly take a look if any items you need now or like to collect.

All Brands shoes available! Like Adidas, Asics, Coverse, MBT, New Balance, Nike, Skechers, Timberland

Those shoes are 100% authentic. You can enjoy free shipping and no tax.

Welcome to check our store and contact us, we are here for your best service always.

http://www.adidasmessi16fg.us

http://www.nikeairmaxmotionlw.us

http://www.cheapairjordan4retroog.us

http://www.adidasultraboostolympic.us

http://www.suprableekerwomen.us

http://www.timberland6inchbootsshoes.us

http://www.nikezoomascentionmen.us

http://www.mbtkitabugtxshoes.us

http://www.airjordan2men.us

http://www.adidasdrose7shoes.us

http://www.mbtbaridiwomen.us

http://www.aikeairforce107high.us

http://www.nikeairhuarachemen.us

http://www.adidasclimacoolshoes.us

http://www.adidasneolabelchaussures.us

http://www.adidasnmdhumanrace.us

http://www.adidasoriginalszx500.us

http://www.adidasoriginalsstansmithwshoes.us

http://www.adidasoriginalspridepack.us

http://www.adidas11protf.us

http://www.adidasspringbladedriveshoes.us

http://www.adidastubularshoes.us

http://www.adidasyeezyboost550sale.us

http://www.adidasoriginalszx8000.us

http://www.nikeelasticoproiiiic.us

http://www.adidasmessi16ag.us

http://www.adidasoriginalsnmd.us

http://www.air-jordan-23.us

http://www.airjordan3men.us

http://www.nikeairmax-2017.us

http://www.adidasoriginalzxflux.us

http://www.adidasclimacoolboatshoe.us

http://www.nikeelasticoproiii-ic.us

http://www.adidassuperstar2shoes.us

http://www.nikeroshetwoflyknitshoes.us

http://www.stansmithadidasshoes.us

http://www.adidasultra-boost-shoes.us

http://www.mbtforagtxwomen.us

http://www.womenadidasneo.us

http://www.timberlandchukka-boots.us

http://www.adidasnmdshoesshop.us

http://www.nikemagistaobraic.us

http://www.mbtlamiwomen.us

http://www.adidasmessiic.us

http://www.timberland6inchbootsmen.us

http://www.nikeelasticofinaleiiistreettf.us

http://www.adidasnmdc1.us

http://www.nikeairmax2016-shoes.us

http://www.adidasstansmithprimeknit.us

http://www.adidasultraboost-uncaged.us

http://www.nikefreeflyknitnsw.us

http://www.kimondomen.us

http://www.kisumu2shoes.us

http://www.kisumushoes.us

http://www.flame-shoes.us

http://www.kimondogtxshoes.us

http://www.foragtxwomen.us

http://www.kifundomen.us

Comment by bertcarl1987 2 weeks ago

All the best blogs that is very useful for keeping me share the ideas of the future as well this is really what I was looking for, and I am

very happy to come here. Thank you very much

http://animaljam-2.com/animal-jam-codes/

http://fivenightsatfreddys-2.com/five-nights-at-freddys-4/

http://hotmailemaillogin.net

Comment by candysim 4 days ago

Thank you for your post quality articles and may be useful for many people.

Makanan Sehat Untuk Paru Paru Basah

Paru Paru Basah Pada Bayi

Paru Paru Kering

Paru Paru Basah Menular

Comment by Agen 21 hours ago

Your point of view

You must be signed in to comment.