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

Print heap addresses and size

Terminal - Print heap addresses and size
PID=`pgrep -o <process_name>`; grep -A 2 heap /proc/$PID/smaps
2012-01-30 14:28:54
User: deimos
Functions: grep
0
Print heap addresses and size

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
PID=`ps | grep process_name | grep -v grep | head -n 1 | awk '{print $1}'`; cat /proc/$PID/smaps | grep heap -A 2

Know a better way?

If you can do better, submit your command here.

What others think

http://www.michaelkorsoutlet-online.org

http://www.nikefreeflyknit.name

http://www.true-religionjeansoutlet.in.net

http://www.eccoshoes.us

http://www.michaelkorsoutletonlineclearance.in.net

http://www.canadagooseoutlets.us.com

http://www.adadassupercolor.com

http://www.thenorthfaceoutlet.com.co

http://www.kate-spadeoutlet.in.net

http://www.coachfactoryonlineoutlet.com.co

http://www.canadagoosejacketsuk.co.uk

http://www.coachpursesoutlet.in.net

http://www.canadagoose-outlet.name

http://www.katespade-outlet.us

http://www.canada-goosejackets.org.uk

http://www.designerhandbags.net.co

http://www.true-religionjeansoutlet.us.com

http://www.ugg-sale.org.uk

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

http://www.cheap-jerseyswholesale.us

http://www.hollistersaleuk.me.uk

http://www.moncleroutletjackets.us

http://www.oakleysunglassesoutlet.in.net

http://www.monclerjackets-uk.co.uk

http://www.birkenstocks.us.com

http://www.red-bottoms.us.com

http://www.doudounemonclerpascher.fr

http://www.coachoutletus.us.com

http://www.uggsaustralia.fr

http://www.cheapnfljerseys-wholesale.us

http://www.airmaxoutletsaleus.com

http://www.canadagooseuk.co.uk

http://www.adadassuperstar.com

http://www.adidasoutlet.us.com

http://www.pandora-charms.me.uk

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

http://www.valentino.in.net

http://www.nike-blazerlow.fr

http://www.redbottomshoes.in.net

http://www.airforce1-nike.fr

http://www.discountnikeshoessc.org

http://www.adidas-shoes.me.uk

http://www.cheapuggsale.us.com

http://www.guccioutlets.us.org

http://www.michaelkorshandbagsuk.me.uk

http://www.christianlouboutinoutletsale.org

http://www.vansshoes.in.net

http://www.hollisterclothingstore.com.co

http://www.fitflops.us

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

http://www.true-religion.us.com

http://www.outletlongchamp.us

http://www.polooutlet.com.co

http://www.christianlouboutinshoes.us.org

http://www.louisvuittonoutletus.us.com

http://www.outletuggboots.us.com

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

http://www.katespadehandbags.net.co

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

http://www.tomsshoes.us.com

http://www.uggs-pas-cher.fr

http://www.pandora-bracelet.us

http://www.bottegaveneta.in.net

http://www.uggaustraliaoutlet.us.com

http://www.kobeshoes.name

http://www.oakley--sunglasses.net.co

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

http://www.poloralphlauren-outlet.co.uk

http://www.coachoutletstoreonlineclearances.in.net

http://www.toryburchoutletstores.in.net

http://www.uggsale.us.com

http://www.truereligionoutlet.com.co

http://www.michaelkorsoutletclearance.in.net

http://www.yeezyboost-350.us.com

http://www.truereligionjeansoutlet.name

http://www.cheapnhljerseyswholesale.us

http://www.pandorajewelryoutlet.org

http://www.hermesbirkin.in.net

http://www.hugobossoutlet.name

http://www.buyredbottomcheapshoesonline.com

http://www.niketrainers.com.co

http://www.cheapjordans.com.co

http://www.canadagooseoutlet.net.co

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

http://www.uggsoutletofficial.us.com

http://www.cheapraybans.com.co

http://www.uggscanada.ca

http://www.michaelkorspurses.in.net

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

http://www.moncleroutlet.in.net

http://www.yeezyboost.us.com

http://www.fitflops.in.net

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

http://www.jordan-femmepascher.fr

http://www.michaelkorshandbag.us.com

http://www.nikefreerun.name

http://www.hollisterclothing.org

http://www.raybansunglasses.net.co

http://www.coachoutlets.us.org

http://www.christianlouboutin.us.org

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

http://www.fitflopssaleclearance.com

http://www.airjordanretro.us

http://www.christianlouboutinshoesoutlet.com

http://www.oakley.nom.co

http://www.christianlouboutinshoes.org.uk

http://www.michaelkorsoutletonlineclearance.us.com

http://www.cheapbasketballshoes.us

http://shop.uggmalls.uk

http://www.nike-store.us.com

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

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

http://www.versaceshoes.in.net

http://www.kevindurantshoes.us

http://www.coachfactoryoutletonline.in.net

http://www.christianlouboutinoutlet.us

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

http://www.wwwlouisvuittonoutlet.us.com

http://www.raybans.org.uk

http://www.abercrombieandfitch.in.net

http://www.cheapraybansunglasses.name

http://www.adidasyeezyshoes.us.com

http://www.abercrombieandfitchoutlet.name

http://www.coachfactoryoutlet-online.in.net

http://www.celineoutlet.us

http://www.longchampbagsuk.org.uk

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

http://www.uggscheap.us.com

http://www.louisvuittonoutlet.ca

http://www.louisvuitton-sac-pascher.fr

http://www.discountoakleysunglasses.com.co

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

http://www.cheapuggsoutlets.us.com

http://www.raybansunglassesdiscount.com.co

http://www.nikehuarache.com.co

http://www.timberlandbootsoutlet.name

http://www.conversetrainer.co.uk

http://www.katespadehandbags.org.uk

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

http://www.coachoutlet.in.net

http://www.ysl-outlet.com

http://www.airmax90.org

http://www.canada-goose-jackets.ca

http://www.reebokshoes.in.net

http://www.lacosteshoes.us

http://www.coach-outletonline.eu.com

http://www.ralph-lauren-pas-cher.fr

http://www.tomsoutletstores.in.net

http://www.canadagoosejacketscanadagoose.us.com

http://www.toms.in.net

http://www.coachoutletstoreonline.com.co

http://www.polooutlets.us.com

http://www.nfl-jerseys-wholesale.us.com

http://www.cheap-ugg-boots.us.com

http://www.pandoracharms.com.co

http://www.louisvuittonhandbagsuk.me.uk

http://www.uggsboots.org.uk

http://www.edhardy-outlet.name

http://www.louisvuitton-outlet-online.us.com

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

http://www.boots-ugg.us.com

http://www.coachoutletonlinecoachfactoryoutlet.us.com

http://www.jimmychoo.in.net

http://www.timberlandbootsoutlet.us

http://www.longchamphandbags.us

http://www.longchamp-handbags.us

http://www.pandorajewelryoutlet.name

http://www.polooutlet.in.net

http://www.pandorauk.org.uk

http://www.converseshoes.in.net

http://www.michaelkors-handbags.uk

http://www.armani-exchange.us

http://www.ferragamoshoes.cc

http://www.christianlouboutinshoes.us

http://www.fitflopssaleclearance.net

http://www.cheapoakleyssunglasses.com.co

http://www.longchampbags.uk

http://www.uggs-australia.it

http://www.gucci--borse.it

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

http://www.airjordan-uk.org.uk

http://www.michaelkorsoutletclearances.us.com

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

http://www.nikeshoes.us.com

http://www.yeezyboost350.me.uk

http://www.burberry-outlet-canada.ca

http://www.birkenstocksandals.org.uk

http://www.omegawatches.name

http://www.levisjeans.name

http://www.cheaprolexreplicawatches.us

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

http://www.nikecortez.com.co

http://www.michaelkorsoutletonline.com.co

http://www.uggsboots.fr

http://www.pradaoutlet.name

http://www.canadagoosejacketscanadagooseoutlet.us.com

http://www.ralphlaurenoutlet.us.org

http://www.cheapmlbjerseys.us

http://www.canadagoosepaschere.fr

http://www.chaussurelouboutin-pascher.fr

http://www.thenorthface.org.uk

http://www.ugg-bootsoutlet.co.uk

http://www.louisvuitton-borse.it

http://www.coachoutletstoreonlineclearances.org

http://www.adidasnmd.us.org

http://www.rolexwatchesuk.me.uk

http://www.michaelkorsoutletclearanceonlines.us.com

http://www.edhardyukclothing.me.uk

http://www.adidasnmd.org.uk

http://www.michaelkorsoutletstore.us.com

http://www.nikestoreuk.me.uk

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

http://www.guccihandbagsoutlet.us

http://www.canadagooseoutlet.ca

http://www.louboutin.eu.com

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

http://www.ugg-australia.org.uk

http://www.coachfactoryoutletsaleonline.us.com

http://www.outletlouisvuitton.us.com

http://www.dolceandgabbanaoutlet.com

http://www.lebronjamesshoes.org

http://www.cheapoakleyssunglasses.us.org

http://www.cheapjordanshoes.us.com

http://www.supraforsale.in.net

http://www.chiflatiron.in.net

http://www.cheapjordans.us.com

http://www.adadasstansmith.com

http://www.rolex-replicawatches.com.co

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

http://www.hermesbeltoutlet.us

http://www.michael-korsoutlet.ca

http://www.uggboots-outlets.us.com

http://www.cheap-jordans.us

http://www.rolexreplicawatches.name

http://www.pandoracharmssaleclearance.com

http://www.michaelkors-outlet.ca

http://www.truereligionjeans.me.uk

http://www.monclerjacketsuk.org.uk

http://www.longchampoutletstore.com

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

http://www.rolexdaytona.in.net

http://www.nike-tn-pascher.fr

http://www.fake-rolex.us

http://www.skechersshoes.us

http://www.louis-vuitton-handbags.us.org

http://www.cheapuggs.org.uk

http://www.chaussure-louboutin.fr

http://www.uggs--canada.ca

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

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

http://www.birkenstocksandals.name

Comment by 20161222yuanyuan 50 weeks and 4 days ago

http://www.airjordan4premium.com/ Air Jordan 4 Premium

http://www.airjordan4premium.com/air-jordans-for-sale-c-141.html Air jordans For Sale

http://www.airjordan4premium.com/air-yeezy-for-sale-c-158.html Air Yeezy For Sale

http://www.airjordan4premium.com/jordan-1-49-c-114.html Jordan 1 4.9

http://www.airjordan4premium.com/jordan-1-sale-c-113.html Jordan 1 Sale

http://www.airjordan4premium.com/jordan-10-sale-c-115.html Jordan 10 Sale

http://www.airjordan4premium.com/jordan-11-sale-c-116.html Jordan 11 Sale

http://www.airjordan4premium.com/jordan-12-sale-c-117.html Jordan 12 Sale

http://www.airjordan4premium.com/jordan-13-sale-c-118.html Jordan 13 Sale

http://www.airjordan4premium.com/jordan-14-sale-c-119.html Jordan 14 Sale

http://www.airjordan4premium.com/jordan-2-sale-c-120.html Jordan 2 Sale

http://www.airjordan4premium.com/jordan-3-sale-c-122.html Jordan 3 Sale

http://www.airjordan4premium.com/jordan-4-sale-c-123.html Jordan 4 Sale

http://www.airjordan4premium.com/jordan-5-sale-c-124.html Jordan 5 Sale

http://www.airjordan4premium.com/jordan-6-rings-c-126.html Jordan 6 Rings

http://www.airjordan4premium.com/jordan-6-sale-c-125.html Jordan 6 Sale

http://www.airjordan4premium.com/jordan-7-sale-c-127.html Jordan 7 Sale

http://www.airjordan4premium.com/jordan-8-sale-c-128.html Jordan 8 Sale

http://www.airjordan4premium.com/jordan-9-sale-c-129.html Jordan 9 Sale

http://www.airjordan4premium.com/jordan-spizike-sale-c-136.html Jordan Spizike Sale

http://www.airjordan4premium.com/kids-air-jordan-shoes-c-137.html Kids Air Jordan Shoes

http://www.airjordan4premium.com/mens-air-jordan-shoes-c-138.html Mens Air Jordan Shoes

http://www.airjordan4premium.com/new-balance-outlet-c-57.html New Balance Outlet

http://www.airjordan4premium.com/new-jordans-2016-c-140.html New jordans 2016

http://www.airjordan4premium.com/nike-air-force-1-high-c-153.html Nike Air Force 1 High

http://www.airjordan4premium.com/nike-air-force-1-low-c-154.html Nike Air Force 1 Low

http://www.airjordan4premium.com/nike-air-force-1-low-women-c-155.html Nike Air Force 1 Low Women

http://www.airjordan4premium.com/nike-air-force-1-mid-c-156.html Nike Air Force 1 Mid

http://www.airjordan4premium.com/nike-air-huarache-sale-c-157.html Nike Air Huarache Sale

http://www.airjordan4premium.com/nike-air-jordan-shoes-c-112.html Nike Air Jordan Shoes

http://www.airjordan4premium.com/nike-air-max-sale-c-16.html Nike Air Max Sale

http://www.airjordan4premium.com/womens-air-jordan-shoes-c-139.html Womens Air Jordan Shoes

http://www.airjordan4premium.com/womens-jordans-c-142.html Womens Jordans

Comment by huang1 20 weeks and 4 days ago

http://www.gorterbedrijfshuisvesting.nl/ Goedkope Nike Air Max 2017

http://www.gorterbedrijfshuisvesting.nl/adidas-nmd-dames.html Adidas NMD Dames

http://www.gorterbedrijfshuisvesting.nl/adidas-nmd-dames-beige.html Adidas NMD Dames beige

http://www.gorterbedrijfshuisvesting.nl/adidas-nmd-dames-grijs.html Adidas NMD Dames grijs

http://www.gorterbedrijfshuisvesting.nl/adidas-stan-smith-dames.html adidas stan smith dames

http://www.gorterbedrijfshuisvesting.nl/adidas-superstar-dames.html Adidas Superstar Dames

http://www.gorterbedrijfshuisvesting.nl/adidas-ultra-boost-dames.html Adidas Ultra Boost Dames

http://www.gorterbedrijfshuisvesting.nl/adidas-yeezy-350-dames.html Adidas Yeezy 350 Dames

http://www.gorterbedrijfshuisvesting.nl/adidas-zx-flux-dames.html Adidas Zx Flux Dames

http://www.gorterbedrijfshuisvesting.nl/adidas-nmd-heren.html Adidas NMD Heren

http://www.gorterbedrijfshuisvesting.nl/adidas-stan-smith-heren.html adidas stan smith heren

http://www.gorterbedrijfshuisvesting.nl/adidas-nmd-heren-blauw.html Adidas NMD Heren blauw

http://www.gorterbedrijfshuisvesting.nl/adidas-superstar-heren.html Adidas Superstar Heren

http://www.gorterbedrijfshuisvesting.nl/adidas-yeezy-350-heren.html Adidas Yeezy 350 Heren

http://www.gorterbedrijfshuisvesting.nl/asics-gel-kayano-evo-dames.html Asics Gel Kayano Evo Dames

http://www.gorterbedrijfshuisvesting.nl/asics-gel-nimbus-18-dames.html Asics Gel Nimbus 18 Dames

http://www.gorterbedrijfshuisvesting.nl/asics-gel-lyte-3-dames.html Asics Gel Lyte 3 Dames

http://www.gorterbedrijfshuisvesting.nl/asics-gel-lyte-3-heren.html Asics Gel Lyte 3 Heren

http://www.gorterbedrijfshuisvesting.nl/asics-gel-lyte-5-heren.html Asics Gel Lyte 5 Heren

http://www.gorterbedrijfshuisvesting.nl/new-balance-574-dames.html New Balance 574 Dames

http://www.gorterbedrijfshuisvesting.nl/new-balance-996-dames.html New Balance 996 Dames

http://www.gorterbedrijfshuisvesting.nl/new-balance-996-heren.html New Balance 996 Heren

http://www.gorterbedrijfshuisvesting.nl/nike-air-max-2017-dames.html Nike Air Max 2017 Dames

http://www.gorterbedrijfshuisvesting.nl/nike-air-max-2017-heren.html Nike Air Max 2017 Heren

http://www.gorterbedrijfshuisvesting.nl/nike-air-max-90-dames.html Nike Air Max 90 Dames

http://www.gorterbedrijfshuisvesting.nl/nike-air-max-90-heren.html Nike Air Max 90 Heren

http://www.gorterbedrijfshuisvesting.nl/nike-air-presto-dames.html Nike Air Presto Dames

http://www.gorterbedrijfshuisvesting.nl/nike-free-5-0-heren.html Nike Free 5.0 Heren

http://www.gorterbedrijfshuisvesting.nl/nike-free-rn-flyknit-heren.html Nike Free Rn Flyknit Heren

Comment by huang1 16 weeks and 6 days ago

Your point of view

You must be signed in to comment.