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.
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.
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
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:
Display the amount of memory used by all the httpd processes. Great in case you are being Slashdoted!
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.
Is this K bite, or K byte or what? :)
man ps
...
rss RSS resident set size, the non-swapped physical memory that a task has used (in kiloBytes). (alias rssize, rsz).
...
See also: http://www.pixelbeat.org/scripts/ps_mem.py
Depends on the version of ps as -C is not always for matching command names or even a valid option.
or per pid:
ps -ylC httpd | awk '{print $8}' | sed '1d'
Estrange:
# ps -o rss -C httpd | tail -n +2 | (sed 's/^/x+=/'; echo x) | bc
1719572
So... 1719572 KB ~= 1679.26 MB?
# ./ps_mem.py | grep http
Private + Shared = RAM used Program
350.1 MiB + 7.2 MiB = 357.3 MiB httpd (201)
What's correct number? :/
This worked best for me. But I don't have bc installed.
ps -ylC httpd | awk '{print $8}' | sed '1d' | awk '{ total += $1 }END{ print total }'
http://www.coachfactoryoutletofficials.us.com
http://www.polooutlet.us.org
http://www.valentino-outlet.us.com
http://www.longchampoutletofficial.us.com
http://www.asicsrunningshoes.us.com
http://www.mlbjerseys-wholesale.us.com
http://adidasyeezyshoes.adidassale.net
http://www.cheapnfljerseys.eu.com
http://www.cheapraybans-sunglasses.us.com
http://www.cheapuggs.name
http://www.ralphlaurenofficial.us.com
http://www.montblancpens-outlet.us.com
http://www.ralph-laurenoutletuk.me.uk
http://www.oakley-sunglassesoutletonline.us.com
http://www.nbajerseyss.us.com
http://www.airjordan.us.org
http://www.poloralphlauren-uk.me.uk
http://www.nike-shoes.us.org
http://www.michaelkors-handbags.in.net
http://www.coachfactoryoutletmiami.us.com
http://www.oakleysunglassesss.us.com
http://www.coachoutletonlinecoachfactoryoutlets.us.com
http://www.montblancpensoutlet.com
http://www.coachfactoryoutletonlinestores.us.com
http://cheapraybansunglasses.co-sunglasses.com
http://www.michael-korsoutletstore.in.net
http://www.michaelkorsoutletclearancehandbags.us.com
http://www.ralphlaurenoutletonlinestore.us.com
http://www.fredperry.org.uk
http://www.oakleysunglassesfactory.us.com
http://www.canadagoosejacketssale.us.com
http://www.ralph-laurenpolooutlet.us.com
http://nikeshoes.up-nike.com
http://www.oakley-sunglassesclearance.us.com
http://www.polo-ralphlaurenuk.me.uk
http://www.michaelkorsoutlet-clearance.org
http://www.fitflopsaleclearance.us.com
http://www.oakleysunglasseswholesaler.us.com
http://www.michaelkorsoutletclearancee.us.com
http://www.pandoraoutletstore.us.com
http://www.edhardyclothing.us.com
http://www.michaelkorssoutletclearance.us.com
http://www.michael-korshandbags.in.net
http://www.michaelkorsoutlet-clearance.us
http://www.cheapjordans-forsale.us.com
http://www.longchampoutlet.us.org
http://poloralphlauren.amegov.com
http://www.valentinooutlet.in.net
http://www.oakleysunglasseswholesalee.us.com
http://www.raybansunglassesformen.us.com
http://www.yeezyboost350-v2.us.com
http://www.michaelkorsoutlet-clearances.us.com
http://www.coachfactoryoutlet-coachoutlet.us.com
http://www.adidasoutlet.com.co
http://www.coachoutletcoachoutletstore.us.com
http://www.hermesbeltsoutlet.us.com
http://nikeshoes.nike-com.com
http://www.nhljerseyss.us.com
http://www.christianlouboutin-uk.org.uk
http://www.mlbjerseys.net
http://www.canadagoose.name
http://www.oakleysunglassescheaps.us.com
http://www.lacosteoutlet.us.org
http://www.nike-shoes.us.com
http://www.pandoraoutlets.us.com
http://www.lebron-jamesshoes.us.com
http://www.cheapmlb-jerseys.us
http://www.pandorajewelry-outlet.us.com
http://www.poloralphlauren-uk.org.uk
http://www.katespadeoutlet-store.us.com
http://www.ralphlauren-shirts.org.uk
http://www.true-religionoutletstore.us.com
http://www.mulberryhandbagsuk.co.uk
http://www.mbtshoescheap.us.com
http://www.canadagooses.com.co
http://www.ralphlauren-polo.me.uk
http://www.adidasyeezy-shoes.us.com
http://www.oakleysunglassesformen.us.com
http://www.lunetterayban.fr
http://www.ralphlaurenshirts.me.uk
http://www.polooutletralphlauren.us.com
http://www.fredperryoutlet.us.com
http://www.mcmoutlets.us.com
http://www.ralphlauren-outletuk.org.uk
http://www.nikeshoesoutlet.us.com
http://www.airjordan4.us
http://www.nikeshoes.com.co
http://www.coachoutletonlinecoachfactoryoutlet.com.co
http://www.cheapuggboots.org
http://www.adidasoutlet.us.org
http://www.fitflops-saleclearance.us
http://www.michaelkorsoutletofficial.com
http://www.oakleysunglasseswholesaleonline.us.com
http://www.canadagoose-outlets.com.co
http://www.adidasyeezyshoes.name
http://www.polo-ralphlauren-pascher.fr
http://www.pandorajewelrycharms.us.com
http://www.cheapjordansfor-sale.us.com
http://www.christian-louboutinoutlet.us.org
http://www.coach-outletonlinecoachfactoryoutlet.us.com
http://www.pradaoutlet-store.us.com
http://www.raybanssun-glasses.com.co
http://www.michaelkorsoutlet-online.in.net
http://www.nikeoutlet.com.co
http://www.truereligionjeans-sale.us.com
http://www.kate-spadeoutlet.us.org
http://yeezyboost.adidassale.net
http://www.mbtshoesoutlets.us.com
http://www.nikeoutletstorelocations.com
http://www.truereligionjeanss.us.com
http://www.cheapjordans.name
http://raybansunglasses.co-sunglasses.com
http://www.pradaoutletstore.us
http://www.coachfactory-outlet.eu.com
http://www.ralph-laurenpolo.us.org
http://www.michaelkorsoutletonlinestore.us.org
http://www.christianlouboutin.com.co
http://www.adidasnmd-r1.us.com
http://www.christian-louboutinshoes.us
http://www.canadagoosejacketss.com.co
http://www.ralphlaurenpolo-uk.org.uk
http://www.fitflopssaleclearance.name
http://www.hermesbirkins.us.com
http://www.raybansun-glasses.com.co
http://www.michaelkorsoutlet-clearance.com
http://www.coachoutletcoachfactoryoutlets.us.com
http://www.adidasshoes.us.org
http://www.raybansunglassesonsale90off.us.com
http://www.ralphlaurenoutlets.org.uk
http://www.katespadeshandbags.us
http://www.coachoutlet-clearance.us.org
http://www.oakleysunglasseswholesales.us.com
http://www.canadagooseoutlet-store.com.co
http://www.montblancpenss.com.co
http://polooutlet.amegov.com
http://www.michaelkorsoutletofficials.us.com
http://www.kate-spadeoutletstore.us.com
http://www.uggoutlet.name
http://www.ralphlaurenpoloshirts.me.uk
http://www.coachfactoryoutletsales.us.com
http://www.cheapuggboots.name
http://www.truereligion-outletstore.us.com
http://www.mont-blancpens.us.com
http://www.fredperrypoloshirts.co.uk
http://raybansunglassesoutlet.co-sunglasses.com
http://www.coach-outletonlineclearance.us.com
http://www.poloralph-laurenuk.co.uk
http://www.polooutlet.name
http://www.poloralphlaurenfactorystore.us.com
chenlili20170418