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

Show the command line for a PID with ps

Terminal - Show the command line for a PID with ps
ps h -o %a 21679
2015-09-27 11:00:07
User: BeniBela
Functions: ps
3
Show the command line for a PID with ps

Show the command line for a PID with ps

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
xargs -0a /proc/27288/cmdline echo
2015-09-25 17:35:11
User: dennisw
Functions: xargs
Tags: Linux /proc
7

If you cat the file, all the parts of the command line are bunched up. If you use tr to convert the nulls to spaces, you're still left without a newline unless you add another step. This command does everything for you.

tr '\0' ' ' </proc/21679/cmdline ; echo

Know a better way?

If you can do better, submit your command here.

What others think

As @tatsh points out in the other thread, ps truncates the command line to the width of the terminal.

Adding w's (wide) to ps fixes this:

ps wwh -o %a 21679
Comment by flatcap 116 weeks and 1 day ago

That is why I asked before posting...

Comment by BeniBela 116 weeks and 1 day ago

http://cheapoakleys.outletonlinestores.net/ oakley sunglasses

http://coach.outletsonlinesale.com/ coach factory

http://coach.outletstore.us.com/ coach handbags

http://coachoutlet.outletstore.us.com/ Coach Factory

http://oakley.outletstore.us.com/ oakley sunglasses

http://raybans.jonmcmeen.com cheap ray ban sunglasses

http://www.2015oakleysunglasses.com/ oakley sunglasses

http://www.cheapmichaelkorsbags.org michael kors handbags

http://www.cheap-oakleys.org/ oakley sunglasses

http://www.cheapoakleys.xyz/ oakley sunglasses wholesale

http://www.coach-factory-online.us.com/ coach factory online

http://www.coachfactoryonlines.us.org/ coach factory online

http://www.coach-factory-outlet.xyz/ coach outlet

http://www.coachfactory-outletonlines.us.com/ coach factory outlet

http://www.coachfactorys.us.com/ coach factory outlet

http://www.coachofficialstore.net/ coach factory online

http://www.coachusaoutlet.net/ coach factory

http://www.discountmichaelkorsbags.org michael kors

http://www.michael-korsoutlet.xyz/ michael kors outlet

http://www.michaelkorsoutlethandbags.us michael kors handbags

http://www.michaelkorsoutletonline.biz michael kors purses

http://www.michaelkorsoutlets.xyz/ michael kors outlet

http://www.michaelkorsoutletstore.us michael kors

http://www.oakleyoutlet-sale.net/ oakley sunglasses wholesale

http://www.oakley-sales.org/ oakley sunglasses

http://www.oakley-sunglasses.xyz/ oakley sunglasses

http://www.oakleysunglasses-sales.cc/ oakley sunglasses

http://www.offical-michaelkorssale.com/ michael kors purses

http://www.official-coachsales.cc/ coach outlet store

http://www.official-mkoutlet.cc/ michael kors outlet

http://www.outlet-coach.cc/ coach outlet online

http://www.outlets-coach.org coach factory outlet

http://www.outlets-coachhandbags.org/ coach factory outlet

http://www.outlets-michael-kors.net/ michael kors handbags

http://www.wholesale-oakley-sunglasses.com/ oakley sunglasses wholesale

http://rb.sunglassesoutlets.us.com/ cheap ray bans for sale

Comment by fuxiaobu 83 weeks and 5 days ago

http://cheapoakleys.outletonlinestores.net/ oakley sunglasses

http://coach.outletsonlinesale.com/ coach factory

http://coach.outletstore.us.com/ coach handbags

http://coachoutlet.outletstore.us.com/ Coach Factory

http://oakley.outletstore.us.com/ oakley sunglasses

http://raybans.jonmcmeen.com cheap ray ban sunglasses

http://www.2015oakleysunglasses.com/ oakley sunglasses

http://www.cheapmichaelkorsbags.org michael kors handbags

http://www.cheap-oakleys.org/ oakley sunglasses

http://www.cheapoakleys.xyz/ oakley sunglasses wholesale

http://www.coach-factory-online.us.com/ coach factory online

http://www.coachfactoryonlines.us.org/ coach factory online

http://www.coach-factory-outlet.xyz/ coach outlet

http://www.coachfactory-outletonlines.us.com/ coach factory outlet

http://www.coachfactorys.us.com/ coach factory outlet

http://www.coachofficialstore.net/ coach factory online

http://www.coachusaoutlet.net/ coach factory

http://www.discountmichaelkorsbags.org michael kors

http://www.michael-korsoutlet.xyz/ michael kors outlet

http://www.michaelkorsoutlethandbags.us michael kors handbags

http://www.michaelkorsoutletonline.biz michael kors purses

http://www.michaelkorsoutlets.xyz/ michael kors outlet

http://www.michaelkorsoutletstore.us michael kors

http://www.oakleyoutlet-sale.net/ oakley sunglasses wholesale

http://www.oakley-sales.org/ oakley sunglasses

http://www.oakley-sunglasses.xyz/ oakley sunglasses

http://www.oakleysunglasses-sales.cc/ oakley sunglasses

http://www.offical-michaelkorssale.com/ michael kors purses

http://www.official-coachsales.cc/ coach outlet store

http://www.official-mkoutlet.cc/ michael kors outlet

http://www.outlet-coach.cc/ coach outlet online

http://www.outlets-coach.org coach factory outlet

http://www.outlets-coachhandbags.org/ coach factory outlet

http://www.outlets-michael-kors.net/ michael kors handbags

http://www.wholesale-oakley-sunglasses.com/ oakley sunglasses wholesale

http://rb.sunglassesoutlets.us.com/ cheap ray bans for sale

Comment by fuxiaobu 83 weeks and 5 days ago

http://cheapoakleys.outletonlinestores.net/ oakley sunglasses

http://coach.outletsonlinesale.com/ coach factory

http://coach.outletstore.us.com/ coach handbags

http://coachoutlet.outletstore.us.com/ Coach Factory

http://oakley.outletstore.us.com/ oakley sunglasses

http://raybans.jonmcmeen.com cheap ray ban sunglasses

http://www.2015oakleysunglasses.com/ oakley sunglasses

http://www.cheapmichaelkorsbags.org michael kors handbags

http://www.cheap-oakleys.org/ oakley sunglasses

http://www.cheapoakleys.xyz/ oakley sunglasses wholesale

http://www.coach-factory-online.us.com/ coach factory online

http://www.coachfactoryonlines.us.org/ coach factory online

http://www.coach-factory-outlet.xyz/ coach outlet

http://www.coachfactory-outletonlines.us.com/ coach factory outlet

http://www.coachfactorys.us.com/ coach factory outlet

http://www.coachofficialstore.net/ coach factory online

http://www.coachusaoutlet.net/ coach factory

http://www.discountmichaelkorsbags.org michael kors

http://www.michael-korsoutlet.xyz/ michael kors outlet

http://www.michaelkorsoutlethandbags.us michael kors handbags

http://www.michaelkorsoutletonline.biz michael kors purses

http://www.michaelkorsoutlets.xyz/ michael kors outlet

http://www.michaelkorsoutletstore.us michael kors

http://www.oakleyoutlet-sale.net/ oakley sunglasses wholesale

http://www.oakley-sales.org/ oakley sunglasses

http://www.oakley-sunglasses.xyz/ oakley sunglasses

http://www.oakleysunglasses-sales.cc/ oakley sunglasses

http://www.offical-michaelkorssale.com/ michael kors purses

http://www.official-coachsales.cc/ coach outlet store

http://www.official-mkoutlet.cc/ michael kors outlet

http://www.outlet-coach.cc/ coach outlet online

http://www.outlets-coach.org coach factory outlet

http://www.outlets-coachhandbags.org/ coach factory outlet

http://www.outlets-michael-kors.net/ michael kors handbags

http://www.wholesale-oakley-sunglasses.com/ oakley sunglasses wholesale

http://rb.sunglassesoutlets.us.com/ cheap ray bans for sale

Comment by fuxiaobu 83 weeks and 5 days ago

2017.7.11chenlixianghttp://www.outletschristianlouboutin.us.com

http://www.valentinoshoes-outlet.us.com

http://www.christianlouboutinsale.org.uk

http://www.guccishoes.net.co

http://www.michaelkorsbags.in.net

http://www.edhardyclothing.in.net

http://www.cheap-jordan-shoes.us.com

http://www.coachoutlet-purses.us.com

http://www.yeezys350boostv2.us.com

http://www.ralphlaurenpolooutlet.us.org

http://www.prada.us.org

http://www.reebok-shoes.us.com

http://www.ralphlaurenuk.uk

http://www.handbags-michaelkors.us.com

http://www.outletpolo-ralphlauren.us.com

http://www.michaelkorsoutletfactoryonline.us.com

http://www.burberryoutletsaleonline.us.com

http://www.nike-airmax.me.uk

http://www.fitflopssaleuk.org.uk

http://www.pandora-jewelry.name

http://www.coachoutletonlineshop.us.com

http://www.oakleysunglassescanada.ca

http://www.wholesale-nfljerseys.us.com

http://www.giuseppe-zanotti.us.com

http://www.adidas-nmdshoes.us.com

http://www.lebron13shoes.com

http://www.ralphlauren.eu.com

http://www.adidas-nmdr1.us.com

http://www.louboutinoutlets.us.com

http://www.tretronik.se

http://www.pradabags.in.net

http://www.thenorthfaceoutletjackets.us.com

http://www.michael-kors-handbags.us.org

http://www.nhlhockey-jerseys.us.com

http://www.vansshoesoutlet-store.com

http://www.poloshirtsralphlauren.us.com

http://www.adidasyeezy-boost350v2.us.com

http://www.sproeiendekutjes.nl

http://www.coachhandbags-onlineoutlet.us.com

http://www.levisjeans.us.com

http://www.tory-burchoutletonline.us.com

http://www.recoilmag.com.au/michael-kors.html

http://www.nikefootballboots.org.uk

http://www.cheapjordansshoes.us.com

http://www.columbiasportswearoutlet-inc.com

http://www.poloralphlauren-outlet.in.net

http://www.sevensoulmotion.be

http://www.ed-hardy.us.org

http://www.ralphlaurenpolo.in.net

http://www.oakleyssunglasseswholesale.us.com

http://www.catboots.us.com

http://www.adidas-nmd.co.uk

http://www.christianlouboutin.me.uk

http://www.christianlouboutinonlineoutlet.us.com

http://www.vansshoes.us.org

http://www.pradashoes-outlet.com

http://www.chaussureschristianlouboutin.fr

http://www.adidastrainersuk.co.uk

http://www.columbiashoes.us.com

http://www.coach-factoryonline.us.org

http://www.toryburchoutlet.net.co

http://www.officialcoachfactoryonlinesale.us.com

http://www.rosherun.org

http://www.proglas.at

http://www.jordansretro.us.com

http://www.kate-spadeoutletonline.us

http://www.cheapnhljersey.us.com

http://www.salomon-shoes.in.net

http://www.manchesterunitedjersey.co.uk

http://www.nikeairforce1.in.net

http://www.aididasyeezy.org.uk

http://www.montblancpenofficials.us.com

http://www.mbt.us.com

http://www.jpgconseil.fr

http://www.villafranchi.it

http://www.funoase.at

http://www.raybanwayfarer.com.co

http://www.ray-banssunglasses.com.co

http://www.gosl.co.uk

http://www.coachoutlet-storeonline.us.org

http://www.shopxpert.dk

http://www.raybanpascher.fr

http://www.vitax.se

http://www.coachcanadaoutlet.com.co

http://www.ferragamooutlet.us.com

http://www.outletslongchamp.us.com

http://www.michaelkorsoutletcanada.com.co

http://www.coachsfactoryoutlet.us.com

http://www.officialcoachoutletonline.us.com

http://www.yslhandbags.us

http://www.vayrocana.de

http://www.dardanet.se/Rolex.html

http://www.fitflopssaleclearance.us.org

http://www.mcmhandbags.us.org

http://www.cheapjordansshoes.in.net

http://www.christianlouboutin.name

http://www.adidasoutletstore.net

http://www.asics.in.net

http://www.converse-outletstore.com

http://www.recoilmag.com.au/christian-louboutin.html

http://www.ralphlaurenoutletofficial.us.com

http://www.michaelkorsoutletcenter.us.com

http://www.the-northfaceoutlet.net.co

http://www.michaelkorsoutletsale.us.org

http://www.hermes.me.uk

http://www.adidasukoriginals.org.uk

http://www.eccoshoes.in.net

http://www.hermes.in.net

http://www.uggbootsclearances.com.co

http://www.poloralphlauren-outlet.com

http://www.coachoutletpurses.us.com

http://www.michaelkorsoutletonlineshop.us.com

http://www.cheapraybansunglasses.net.co

http://www.lebronjamesshoes14.us

http://www.oakleys.com.co

http://www.outletcoachfactory.us.com

http://www.michaelkorstotehandbags.us.com

http://www.katespadeoutletsale.us.com

http://www.ferragamobelt.us.com

http://www.raybansunglassesoutlet.net.co

http://www.pandora-rings.net

http://www.polo-ralphlaurenshirts.us.com

http://www.vansshoesoutlet.us.com

http://www.redbottoms.me.uk

http://www.kate-spadeoutletonline.us.com

http://www.adidassoccershoes.us

http://www.katespadeoutletstore.us.org

http://www.burberryoutlet-online.cc

http://www.converseshoes.us.org

http://www.underarmour.in.net

http://www.outletpoloralphlauren.us.org

http://www.montblanc.com.co

http://www.vibramfivefingers.in.net

http://www.mathcad.be

http://www.michael-korsoutletus.us.com

http://www.grnet.ch

http://www.suprashoes.in.net

http://www.columbiasportswear.in.net

http://www.vans-store.in.net

http://www.nikeairmaxshoes.us.com

http://www.truereligionsale.com.co

http://www.oakleysunglasses-outlet.com.co

http://www.thenorthfaceoutletstore.us.com

http://www.converseshoesoutlet.us.com

http://www.adidas-ultraboost.com

http://www.anzeigenmaerkte.ch

http://www.jordanshoes.us.org

http://www.newbalance-shoes.us.com

http://www.michaelkorsoutletsonlinesale.us.com

http://www.michaeljordan-shoes.com

http://www.stansmithadidas.us.com

http://www.softworx.it

http://www.cocoritosrl.it

http://www.jaggabite.nl

http://www.burberryonlineoutlet.net.co

http://www.adidas-neo.us.com

http://www.polooutletstores.in.net

http://www.michaelkorshandbagsuk.uk

http://www.michaelkorsoutletclearance.us.org

http://www.oakleystore.com.co

http://www.wholesaleray-bansunglasses.us.com

http://www.coachfacyoryoutletonlinee.us.com

http://www.adidasshoes.in.net

http://www.jordanretro.us

http://www.snapbackshatswholesale.us.com

http://www.oakley-sunglassesonsale.us.com

http://www.michael-kors--handbags.com

http://www.adidastrainers.uk

http://www.coach-factoryonline.us.com

http://www.pradahandbagsoutlet.us.com

http://www.nikerosherun.org

http://www.pradaoutletonlinestore.us.com

http://www.nikeairjordans.us.com

http://www.michaelkorsbagsuk.co.uk

http://www.kd10kevindurantshoes.org

http://www.ray-bansunglassesoutlets.us.com

http://www.coach--purses.in.net

http://www.uggbootsclearance.net.co

http://www.truereligion-jeans.com.co

http://www.michaelkors--outlet.us.com

http://www.lecoqsportifchaussures.fr

http://www.pandoraoutlet.us.org

http://www.pandoracharms.us.org

http://www.cheapraybans.ca

http://www.true-religion.me.uk

http://www.coachoutletonlinesales.us.com

http://www.coachfactoryoutletstore-online.us.com

http://www.adidasyeezy-boost.us.com

http://www.laurenralphlauren.us.com

http://www.coachoutletfactoryoutlet.us.com

http://www.adidassuperstar.name

http://www.kobeshoes.us.com

http://www.mizunorunningshoes.us.com

http://www.rayban--sunglassess.us.com

http://www.nikeroshe.us.com

http://www.oakley--sunglasseswholesale.us.com

http://www.mamiundich.ch

http://www.nikecortez.org

http://www.birkenstocksandals.org

http://www.nikehuarache.in.net

http://www.toryburchoutletsonline.us.com

http://www.nikesoccershoes.us.com

http://www.cheap--nfljersey.us.com

http://www.sunglassesoakley.com.co

http://www.longchamp-outlet.us.org

http://www.fitflops.org

http://www.michaelkorsoutletonlinesales.us.com

http://www.mbt-shoes.in.net

http://www.coachfactory-outletstoreonline.us.com

http://www.recoilmag.com.au/ralph-lauren.html

http://www.calvinklein.co.com

http://www.pandorajewelry.in.net

http://www.archivigramsci.it

http://www.nylonic.co.uk

http://www.generaliopen.at

http://www.alupro.fr

http://www.mlbjerseys.org

http://www.recoilmag.com.au/adidas-yeezy.html

http://www.fitflops.us.com

http://www.nikeroshe.org.uk

http://www.michael--kors--canada.ca

http://www.louis-vuittonoutletus.us.com

http://www.supop.fr

http://www.michaelkors.me.uk

http://www.pandoraukjewelry.org.uk

http://www.longchamp-handbags.us.org

http://www.michaelkorsoutletstores.us.org

http://www.nikehuarache.me.uk

http://www.adidasyeezy350.us.com

http://www.adidasoutletclearance.com

http://www.kobe12shoes.us.com

http://www.ralphlaurenukofficial.org.uk

http://www.coachoutletsclearance.us.com

http://www.bliriknu.se

http://www.nikefactoryoutletstores.us.com

http://www.nba-jerseys.us.com

http://www.true-religionjeans.us.org

http://www.nikeoutletstore.us.com

http://www.nikeairmax2017.org

http://www.maccosmeticsonline.us.com

http://www.new-balanceshoes.us.com

http://www.jordans.in.net

http://www.ctss.se/Ray Ban.html

http://www.birkenstock.us.org

http://cheapoakley.sunglassesonline.us.com

http://www.columbiaoutlet-store.com

http://www.mlbjerseyswholesale.us.com

http://www.nikeairmax2016.in.net

http://www.cheap-mlb-jerseys.us.com

http://www.salvatore-ferragamo-outlet.in.net

http://www.michaelkorsoutletonline.us.org

http://www.louisvuittonoutlettrade.us.com

http://www.clarks-shoes.in.net

http://www.christianlouboutinshoes-outlet.us.com

http://www.lecoqsportifshoes.us.com

http://www.canadagoosesale.com.co

http://www.michael--kors--outlet.ca

http://www.truereligionoutlet.eu

http://www.noltingorgelgendringen.nl

http://www.clarksoutlet.in.net

http://www.burberrystore.us.com

http://www.macysmichaelkorshandbags.us.com

http://www.adidas-nmdxr1.us.com

http://www.adidasfootballboots.me.uk

http://www.chelseajersey.org.uk

http://www.adidasoriginalsshoes.in.net

http://www.airmaxuk.uk

http://www.recoilmag.com.au/rolex.html

http://www.ray-banssunglasses.me.uk

http://www.nikesb.us

http://www.nikeoutlet-online.com

http://www.rayban-sunglasses.com.co

http://www.michaelkors--outlet.us.org

http://www.fitflops.us.org

http://www.rdsk.ch

http://www.ralphlaurenoutlet.nom.co

http://www.nikefactory-outlet.us.com

http://www.niketrainers.uk

http://www.oakleys-sunglasseswholesale.us.com

http://www.adidasyeezyboost350v2.in.net

http://www.replica-watches.us.com

http://www.ctss.se/Nike Air Max.html

http://www.buymichaelkorshandbags.us.com

http://www.michael--korsoutlet.us

http://www.reebokshoesoutlet.us.com

http://www.nikeairmaxuk.me.uk

http://www.adidas-nmd.co.uk

http://www.katespadehandbagssale.us.com

http://www.adidasyeezy-boost350v2.us

http://www.christianlouboutinoutletusa.us.com

http://www.michaelkorsuk.com.co

http://www.dardanet.se/Ralph lauren.html

http://www.louboutinparis.fr

http://www.oakleys-sunglassesoutlet.us.com

http://www.birkenstockoutlet.us.com

http://www.grupolanda.es

http://www.adidasstansmith.org.uk

http://www.poloralphlaurenoutletonilne.us.com

http://www.fitflopsoutlet.us.com

http://www.oakleysunglassesoutletwholesale.us.org

http://www.coachwallets.us.com

http://www.coachfactoryoutletonlinesale.us.com

http://www.manoloblahnik.us

http://www.coachfactoryoutletonlineofficial.us.com

http://www.mcm.com.co

http://www.nfljerseyswholesalecheap.us.com

http://www.kibbie.at

http://www.suprashoesoutlet-inc.com

http://www.cheapairjordan-shoes.us.com

http://www.michael-korsbags.us.org

http://www.toryburchsale.us.com

http://www.sac-longchamppas-cher.fr

http://www.hermesbirkinhandbags.us.com

http://www.hermesbeltoutlet.com

http://www.michaelkorsshop.us.com

http://www.nikeblazers.in.net

http://www.cheap-jordans.us.com

http://www.adidas.in.net

http://www.airjordan-14.us

http://www.coachoutletfactoryonline.us.org

http://www.underarmouroutletclearance.com

http://www.ferragamoshoesoutlet.us.com

http://www.nfl-jerseys.in.net

http://www.coachhandbags.cc

http://www.fredperrypoloshirts.us.com

http://www.raybanssunglasses.com.co

http://www.nikefreerun.us.com

http://www.nikerunning.org.uk

http://www.clarksshoesoutlet-online.com

http://www.realfres.es

http://www.outletcoachs.us.com

http://www.michaelkorsonline-outlet.us.com

http://www.truereligion.net.co

http://www.adidaszxflux.org.uk

http://www.christianlouboutinoff.us

http://www.pandorajewelryoutlet.us.org

http://www.truereligionjeans-outlet.us.com

http://www.outletnike.org

http://www.ralphlaurenpolouk.org.uk

http://www.ray-banaviatorsunglasses.org.uk

2017.7.11chenlixiang

Comment by chenyingying 22 weeks and 6 days ago

Your point of view

You must be signed in to comment.