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

Print stack trace of a core file without needing to enter gdb interactively

Terminal - Print stack trace of a core file without needing to enter gdb interactively
alias gdbbt="gdb -q -n -ex bt -batch"
2009-11-10 22:56:59
User: TeacherTiger
Functions: alias
3
Print stack trace of a core file without needing to enter gdb interactively

The pstack command prints a stack trace of running processes without needing to attach a debugger, but what about core files? The answer, of course, is to use this command. Usage: gdbbt program corefile

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
gdb -batch -ex "run" -ex "bt" ${my_program} 2>&1 | grep -v ^"No stack."$
2010-12-29 17:46:31
User: kurt
Functions: gdb grep
Tags: gdb
13

For automated unit tests I wanted my program to run normally, but if it crashed, to add a stack trace to the output log. I came up with this command so I wouldn't have to mess around with core files.

The one downside is that it does smoosh your program's stderr and stdout together.

gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" ${exe} ${corefile}
2010-07-06 14:49:03
User: Flameeyes
Functions: gdb
Tags: gdb
5

This does almost the same thing as the original, but it runs the full backtrace for _all_ the threads, which is pretty important when reporting a crash for a multithreaded software, since more often than not, the signal handler is executed in a different thread than the crash happened.

Know a better way?

If you can do better, submit your command here.

What others think

When, via New York to help Rome and also from Modern australia for you to Peking, a lot more than 2 million readers get respected their masterpieces inside museums and galleries, his or her design can be portrayed to start with with tone, living, motion and the document of females, which he lovingly is connected with considering that 1958, your particular date regarding his 1st assortment intended for Religious Dior, makinged your guy well-known all over the world.The previous involving handbags arrives never-ending cycle initially on the century. In the beginning, bags had been some sort of guys's addition, which they left up until the idea was basically associated with women. But as guys's model stretches a lot more organised, gents bags are generally once more rebounding. At least they're a minor more durable in comparison to decreased actually leaves.Potentially the actual earth's nearly all well-known magnificent brand is definitely Store Keep. Because the reason is from your Nineteenth century, features really set up on it's own as the principal http://www.hermesbeltsbirkinkellybag.co.uk/ extravagance name with garments, baggage, bags in addition to parts. They have kept your custom of conscious as well as intensive job workmanship for any every extravagant item which often has send out famous LV company logo along with fleur-de-lis.Besides the posted amount tags, yet another large signal in which whether any handbag can be man-made or perhaps a actual may be the hang on to wrap around this works with that provides an affordable seem. I am not recommending which purses do not have plastic-type material wrappers over relates to nevertheless, you could possibly usually inform from the quality of the plastic-type widely used. A number of innovative bags have got plastic-type material includes yet not the particular reselling bags. A presentation bag or perhaps used item, after that you should certainly not find the plastic material handles in any respect. Considering that never ever creates wholesale, you could plan to question the seller where by he acquired the actual bag from if you find plastic material nevertheless in the controls.It merely got a number of ages prior to a Vuitton name had been realized throughout European countries. Through his living, Louis would have been a success inside the design globe. Which is verified from the several investings he or she embarked on, each one of that panned out amazingly.Oakley glasses have several selections. You could opt for the Asian kitchenware in shape, Iridium or maybe pharmaceutical drug well prepared. Your Asian healthy shades can be found in many types, for instance polarized Drizzle and also Rapid Cover.It might be a small much harder to find couture wedding special event stationary when compared with it can be to help put some sort of couture handbag, apart from if nonetheless it is just a very dominant, fresh unveiled bag. This particular simply just shows that there are only a few wedding party encouraged makers that happen to be advertising them selves as "couture." This can be wonderful mainly because these marriage ceremony get together ask business would have the opportunity to request for a lot much more if they improved to reach you for designs. As an alternative, you will have the possible ways to locate premium wedding event stationery that are traveling to match as part of your wedding party spending plan. You are merely going to have to look through somewhat tougher.When this had become fashionable for females to hold on to toys sporting smaller different versions with their attire (a mini-me, in a method of speaking), makers associated with handbags would definitely help make a pair of measurements of these styles'"catching the most compact fine detail inside the dollies' little purses.

Comment by stephanieg915 3 days ago

Elegant and stylish knock-off artist handbags are additionally a perfect gift idea for anyone particular. You might present the idea for a mom, sibling, fund, grandmother, as well as pal upon many very get together. They're going to undoubtedly end up being delighted to obtain the idea don't forget your current small of affection through out his or her existence!Louis in addition definitely makes the http://www.hermesbeltsbirkinkellybag.co.uk/ large Montsouris General motors packsack for all those thus, which pauperization a significant bag, yet usually do not adjusting for that added in edge bags or maybe bring bags. Using this type of section bag site calm rightful relatively much exactly what could incorporate to a bag. This bag is seen a whole bunch well prepared with pupil. It really is outdated ample for several with their smaller books as well as dwarfish satisfactory not to ever prevent.Suggestion a single: distribution model handbagfrom online store, that's economical than entire body shops, because it has no hire property expenses and other perform charges. Whilst purchasing from on-line retailers, you must be more conscious of contrasting views, reliability and pace with the stores.Louis Vuitton will be producing bags and other goods to achieve the requirements of consumers. The idea in addition additional significant respect along with reputation over the planet. Actually Handbags tend to be looked at since extraordinary in addition to unusual pieces of functionality and originality.For LV and other businesses to develop around the world flagship go shopping, "Teng land", the idea Lungs Plaza is positioned inside Jingan Area has arrived is the largest amount of high-end name brand buying. At the same time period, this duplicate bags workforce financial commitment Hisayoshi centre damaged ground within Hongqiao.Handbagzzz gives most up-to-date and quite a few stylish identical bags at incredibly reasonable as well as cost-effective price ranges. We have substantial collection of reproduction designer bags. The most warm selling repeat designer handbags usually are: Store On the net Taiga Natural leather Container Realignment Clutch i465 black ( space ) Dreary: This is a aesthetically designed smooth wash rag pack can hold unfastened modification. It provides a classic sq variety bag or perhaps brief-case possesses jumped primary as well as folded away factors.(D) on notice associated with stated misdemeanor while referred to inside part (Three), reacts expeditiously to remove, or perhaps disarm entry to, the merchandise that's announced to become infringing in order to function as the matter of infringing process.However, using the quite a few builder bags offered to decide upon, how should anyone decide on probably the most well-liked plus more important as compared to other individuals? You may start to see the worth of a purse through the standing of the product, layout, and the developer. Or you will similarly provide benefit to your bag manufacturer in the event that much more eye-catching and well-known famous people pick them when planning to critical events of their lives.

Comment by stephanieg915 3 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-trilium_181.html,http://www.canadagoosefemmehomme2016.fr/bomber-canada-goose_240.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-femme_458.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-au-canada-prix_54.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-femme_305.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-victoria-parka_462.html,http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-occasion_186.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-calgary_278.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse_41.html,http://www.canadagoosefemmehomme2016.fr/manteau-homme-canada-goose_82.html,http://www.canadagoosefemmehomme2016.fr/gilets-canada-goose_370.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-printemps-haussmann_323.html,http://www.canadagoosefemmehomme2016.fr/pantalon-canada-goose_315.html,http://www.canadagoosefemmehomme2016.fr/jogging-canada-goose_399.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-style_105.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-occasion_262.html,http://www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-prix_422.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-montpellier_353.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-le-bon-march��_461.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-whistler_318.html,http://www.canadagoosefemmehomme2016.fr/canada-goose-magasin-paris_280.html,http://www.canadagoosefemmehomme2016.fr/skreslet-parka-canada-goose_469.html,http://www.canadagoosefemmehomme201

Comment by sguerra376 2 days ago

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-en-france_127.html

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

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-solaris-parka_375.html

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-pour-enfant_217.html

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

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

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

www.canadagoosefemmehomme2016.fr/veste-style-canada-goose_223.html

www.canadagoosefemmehomme2016.fr/fr-canada-goose_182.html

www.canadagoosefemmehomme2016.fr/canada-goose-bleu-electrique_187.html

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

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

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

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

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

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

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-femme-pas-cher_472.html

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

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

www.canadagoosefemmehomme2016.fr/skreslet-parka-canada-goose_469.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme-pas-cher_341.html

www.canadagoosefemmehomme2016.fr/canada-goose-homme-pas-cher_440.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/prix-doudoune-canada-goose_428.html

www.canadagoosefemmehomme2016.fr/snow-mantra-canada-goose_155.html

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-femme-occasion_464.html

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

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

www.canadagoosefemmehomme2016.fr/fr-canada-goose_182.html

www.canadagoosefemmehomme2016.fr/promo-canada-goose_263.html

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

www.canadagoosefemmehomme2016.fr/vente-de-canada-goose_361.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-huron-bomber_437.html

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

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/vente-de-canada-goose_361.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-le-bon-march��_461.html

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

www.canadagoosefemmehomme2016.fr/montebello-canada-goose_148.html

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

www.canadagoosefemmehomme2016.fr/veste-canada-goose-pas-cher_200.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-3-fois_242.html

www.canadagoosefemmehomme2016.fr/la-canadienne-canada-goose_294.html

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

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

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

www.canadagoosefemmehomme2016.fr/logo-canada-goose_138.html

www.canadagoosefemmehomme2016.fr/canada-goose-en-france_127.html

www.canadagoosefemmehomme2016.fr/canada-goose-bleu-electrique_187.html

www.canadagoosefemmehomme2016.fr/canada-canada-goose_246.html

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

www.canadagoosefemmehomme2016.fr/doudoune-sans-manche-canada-goose_314.html

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

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-rose_421.html

www.canadagoosefemmehomme2016.fr/site-officiel-canada-goose_432.html

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-femme_458.html

Comment by sguerra376 1 day ago

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

www.canadagoosefemmehomme2016.fr/kensington-canada-goose_234.html

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/prix-doudoune-canada-goose_428.html

www.canadagoosefemmehomme2016.fr/canada-goose-femme-bleu-marine_151.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-site-officiel_57.html

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

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

www.canadagoosefemmehomme2016.fr/lodge-hoody-canada-goose_133.html

www.canadagoosefemmehomme2016.fr/gilet-canada-goose_185.html

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

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

www.canadagoosefemmehomme2016.fr/goose-femme_52.html

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

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

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

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-pas-cher_426.html

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

www.canadagoosefemmehomme2016.fr/magasin-canada-goose-a-paris_387.html

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

Comment by sguerra376 6 hours ago

Your point of view

You must be signed in to comment.