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

lsof equivalent on solaris

Terminal - lsof equivalent on solaris
/usr/proc/bin/pfiles $PID
2009-03-05 17:26:57
User: axelabs
4
lsof equivalent on solaris

Report fstat(2) and fcntl(2) information for all open files in each process.

Alternatives

There are 12 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Here is a good way to iterate through all processes:

for PID in `/usr/bin/ps -e -o pid`;do echo Checking PID $PID... /usr/local/bin/sudo /usr/bin/pfiles $PID|grep port: done
Comment by axelabs 290 weeks and 2 days ago

Sounds good, only one problem: NEVER do this on production system. The 'pfiles' command effectively halts the process in order to inspect it. (see the man page). If your process is doing heavy socket i/o while being halted it will crash as a result.

Comment by MrKnowItAll 280 weeks and 6 days ago

Unless you are planning to shell out lots of money, computers usually are not generally extremely stylish. You can obtain a gadget which has a first rate volume of digesting energy for one few hundred dollars, but it's likely to be a rather simple dark-colored rectangle that will not precisely generate a vibrant trend affirmation. This doesn't, nevertheless, imply you must resign you to ultimately hauling about a little something totally boring. If you need to liven some misconception a little while still maintaining your electronic devices risk-free, you can find outstanding custom notebook computer bags that should be the two purposeful in addition to enjoyment.By considering how big you'll need to have, it is advisable to start. This is usually easier than you think to work through should you have laptop, because bags can be bought based http://www.hermesbeltsbirkinkellybag.co.uk/ on the height and width of the unit these are meant to hold. This is definitely a crucial particulars. Bags made for laptops generally include things like storage compartments which can be particularly cushioned and also supposed to be set aside for your laptop or computer themselves. If you get one that's too small, it evidently is not going to match by any means. Engineered to be too big could possibly water rebound in relation to in ways which aren't great for the actual technology inside, and may resulted in need in order to place much more difficulties into your same spot that could keep marks together with other unsightly symbolizes.Other , laptop occasions have a wide range of designs. They could be intended likebriefcases and rucksacks, messenger palm bags, and other varieties of containers solely. Additionally, they arrive in many different designs. Dark-colored and other organic hues are really common from the attache scenario palm bags, simply because usually are well-liked by folks who might need some aspect to choose to use run which is not far too outdoors. In the others, though, you can easily uncover models offering vibrant colorings,stripes and also plants, and also and also other sorts of styles.Regardless connected with whether you're trying to find Computer system Situations as well as pc tablet instances, you don't have to quit yourself to getting your hard earned cash in to a thing dreary. Suppliers are very conscious that there are a variety connected with younger persons carrying units close to currently, in addition to a much more individuals who would like a notebook computer as it would be just good to have rather than since they are transporting this solely intended for do the job. They can be supplying a number of styles that will competitors ideal for view in every garments retail outlet, though on the other hand such as the padding, exclusively size compartments, and various more accessories that make these kind of side bags and so handy and also versatile.

Comment by stephanieg915 6 days ago

A luxury designer handbag is normally pointed out inside 'Must-Have Equipment Wish-list of each and every lady. And once it comes to the enchanting class and magnificence of antique high end bags, it will become higher than a must to have 1! Amazing design in addition to beautiful models in addition to designer tag tend to be traits that almost all ladies motivation inside their handbags. And pre-loved luxury custom handbags emanate all of the qualities effortlessly. They may be actually a critical for an ideal clothing.Nowadays, your list market is inundated along with outfits as well as accessories in different styles and also design. Antique, extravagance custom handbags can be bought in sizes, designs, and designs; you can pick one which very best http://www.hermesbeltsbirkinkellybag.co.uk/ fulfills your requirements and spending budget. You have to realize that if you opt to develop the bag reconditioned as well as repaired, you may limit the valuation on the particular handbag. Old-fashioned bags get worth not only for their recognition, except for his or her design.Few details including regardless of if the bag sales techniques appropriately or you cannot could possibly be one of the major concerns. However, even when the top quality regarding belt is not that beneficial, you could possibly consent to spend the money for greatest selling price because it may be from the very first bags of which applied over unity magnetic gripping. This is particularly correct in case you are more interested in the design rather then the particular resourcefulness in addition to good your bag.Vintage artist bags can be somewhat pricey, which range from several hundred to help thousands. The price of bag depends on the trouble, layout, individuality, scarcity, and also the resources from which the actual bag was developed along with the day of your bag.If an individual make an online purchase for the classic, luxury artist handbag, make use of diverse search phrases for instance, high-class tote, old-fashioned bags, classic handbags, antique purses and handbags, retro designer bags, and many others. Also, it can deliver achievement to search for an internet based look or perhaps shop that provides precise explanations throughout particularly the products you can buy. An explanation regarding bag itself, the age, in addition to a description of the imperfections which might be found within the bag will help you pick the right vintage bag by yourself.A classic, luxurious custom bag meets your needs prefer a genuine Versace,, or perhaps Hermes bag. Picking out your own antique designer bag could be thrilling rolling around in its very own way. Extra artist handbag which best suits your personal style, ones apparel, together with your budget is an effective way to go in relation to shopping for pre-loved luxury artist handbags. If you'd like more information on old-fashioned artist leather handbags as well as check out toe sand iron shoes, go to obtenir.internet.au.

Comment by stephanieg915 6 days ago

www.canadagoosefemmehomme2016.fr/doudoune-longue-canada-goose_447.html,www.canadagoosefemmehomme2016.fr/parka-canada-goose-langford_425.html,www.canadagoosefemmehomme2016.fr/canada-goose-kensington-parka-femme_448.html,www.canadagoosefemmehomme2016.fr/canada-goose-toronto_259.html,www.canadagoosefemmehomme2016.fr/soldes-canada-goose_137.html,www.canadagoosefemmehomme2016.fr/manteau-canada-goose-homme_279.html,www.canadagoosefemmehomme2016.fr/hommes-canadian-goose_102.html,www.canadagoosefemmehomme2016.fr/acheter-canada-goose-montreal_351.html,www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html,www.canadagoosefemmehomme2016.fr/le-bon-coin-canada-goose_157.html,www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme-pas-chere_357.html,www.canadagoosefemmehomme2016.fr/canada-goose-en-france_127.html,www.canadagoosefemmehomme2016.fr/adresse-magasin-canada-goose-montreal_297.html,www.canadagoosefemmehomme2016.fr/canada-goose-femme-solde_457.html,www.canadagoosefemmehomme2016.fr/canada-goose-femme-prix_231.html,www.canadagoosefemmehomme2016.fr/canada-goose-parka-trillium-femme_429.html,www.canadagoosefemmehomme2016.fr/canada-goose-occasion_413.html,www.canadagoosefemmehomme2016.fr/constable-canada-goose_67.html,www.canadagoosefemmehomme2016.fr/ou-acheter-une-doudoune-canada-goose_348.html,www.canadagoosefemmehomme2016.fr/vetement-goose-canada_345.html,www.canadagoosefemmehomme2016.fr/manteau-canada-goose-prix_332.html,www.canadagoosefemmehomme2016.fr/canada-goose-expedition_268.html,www.canadagoosefemmehomme2016.fr/canada-goose-vs-pjs_443.html,www.canadagoosefemmehomme2016.fr/prix-canada-goose-canada_416.html,www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-femme_458.html,www.canadagoosefemmehomme2016.fr/canada-goose-snow-mantra_209.html,www.canadagoosefemmehomme2016.fr/canada-goose-parajumpers_49.html,www.canadagoosefemmehomme2016.fr/parka-femme-canada-goose_336.html,www.canadagoosefemmehomme2016.fr/canada-goose-moncler_415.html,www.canadagoosefemmehomme2016.fr/manitoba-canada-goose_482.html,www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-prix_362.html,www.canadagoosefemmehomme2016.fr/canada-goose-lodge_76.html,www.canadagoosefemmehomme2016.fr/canada-goose-montebello-noir_170.html,www.canadagoosefemmehomme2016.fr/canada-goose-point-de-vente_371.html,www.canadagoosefemmehomme2016.fr/canada-goose-magasin-paris_280.ht

Comment by sguerra376 5 days ago

www.canadagoosefemmehomme2016.fr/veste-canada-goose-femmes_189.html,www.canadagoosefemmehomme2016.fr/canada-goose-grenoble_340.html,www.canadagoosefemmehomme2016.fr/canada-goose-montebello_383.html,www.canadagoosefemmehomme2016.fr/comment-reconnaitre-une-canada-goose_478.html,www.canadagoosefemmehomme2016.fr/canada-goose-new-york-prix_159.html,www.canadagoosefemmehomme2016.fr/entrepot-canada-goose_158.html,www.canadagoosefemmehomme2016.fr/canada-goose-dawson-parka_374.html,www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-paris_144.html,www.canadagoosefemmehomme2016.fr/promo-canada-goose_263.html,www.canadagoosefemmehomme2016.fr/canada-goose-grise_80.html,www.canadagoosefemmehomme2016.fr/ecusson-canada-goose_168.html,www.canadagoosefemmehomme2016.fr/magasin-canada-goose-paris_39.html,www.canadagoosefemmehomme2016.fr/canada-goose-mystique-femme_179.html,www.canadagoosefemmehomme2016.fr/heatherton-canada-goose_484.html,www.canadagoosefemmehomme2016.fr/canada-goose-montebello-noir_170.html,www.canadagoosefemmehomme2016.fr/vetements-canada-goose_64.html,www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html,www.canadagoosefemmehomme2016.fr/canada-goose-bleu-marine_235.html,www.canadagoosefemmehomme2016.fr/canada-goose-sans-manche_325.html,www.canadagoosefemmehomme2016.fr/canada-goose-noir-homme_384.html,www.canadagoosefemmehomme2016.fr/marque-doudoune-canada-goose_74.html,www.canadagoosefemmehomme2016.fr/canada-triple-goose_260.html,www.canadagoosefemmehomme2016.fr/canada-goose-site_385.html,www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose-pas-cher_407.html,www.canadagoosefemmehomme2016.fr/canada-goose-the-chateau_364.html,www.canadagoosefemmehomme2016.fr/canada-goose-sans-fourrure_311.html,www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-longue-femme_272.html,www.canadagoosefemmehomme2016.fr/parka-montebello-canada-goose_379.html,www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack_393.html,www.canadagoosefemmehomme2016.fr/canada-

Comment by sguerra376 5 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-rouge_59.html

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

http://www.canadagoosefemmehomme2016.fr/expedition-parka-canada-goose_210.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-bomber_402.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-femme_305.html

http://www.canadagoosefemmehomme2016.fr/point-de-vente-canada-goose_304.html

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-accessoires_183.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-blouson-aviateur-chilliwack-homme_321.html

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

http://www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose-pas-cher_204.html

http://www.canadagoosefemmehomme2016.fr/marque-doudoune-canada-goose_74.html

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

http://www.canadagoosefemmehomme2016.fr/vente-doudoune-canada-goose-femme_197.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-dawson-parka_374.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-montebello-noir_170.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-femme-pas-cher_139.html

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

http://www.canadagoosefemmehomme2016.fr/solaris-parka-canada-goose_110.html

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

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

Comment by sguerra376 2 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack_393.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-taille-grand-ou-petit_112.html

http://www.canadagoosefemmehomme2016.fr/gants-canada-goose_312.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose-en-france_308.html

http://www.canadagoosefemmehomme2016.fr/solaris-parka-canada-goose_110.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-xxs_391.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-montpellier_353.html

http://www.canadagoosefemmehomme2016.fr/whistler-parka-canada-goose_309.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau_300.html

http://www.canadagoosefemmehomme2016.fr/victoria-parka-canada-goose_338.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-homme-prix_243.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-france-site-officiel_307.html

http://www.canadagoosefemmehomme2016.fr/doudoune-homme-canada-goose_366.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-femmes_189.html

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

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

http://www.canadagoosefemmehomme2016.fr/comment-reconnaitre-une-canada-goose_478.html

http://www.canadagoosefemmehomme2016.fr/pas-cher-canadian-goose_219.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-violette_121.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-manteau_438.html

http://www.canadagoosefemmehomme2016.fr/goose-canada-pas-cher_140.html

Comment by sguerra376 2 days ago

http://www.canadagoosefemmehomme2016.fr/canada-goose-blanc_171.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-chateau_427.html

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

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-soldes_241.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-doudoune_163.html

http://www.canadagoosefemmehomme2016.fr/doudoune-style-canada-goose_283.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-montebello-femme_128.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka-expedition-homme_355.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose_100.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-a-montreal_306.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-enfant_83.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-bordeaux_397.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-parka_61.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-printemps_410.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher-homme_161.html

http://www.canadagoosefemmehomme2016.fr/ou-trouver-canada-goose_232.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-chateau-homme_296.html

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

http://www.canadagoosefemmehomme2016.fr/vetements-canada-goose_64.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-calgary_278.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-pas-cher_192.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-stockholm_43.html

Comment by sguerra376 1 day ago

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

http://www.canadagoosefemmehomme2016.fr/acheter-canada-goose-montreal_351.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-pas-cher_65.html

http://www.canadagoosefemmehomme2016.fr/prix-canada-goose_398.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-kensington_86.html

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

http://www.canadagoosefemmehomme2016.fr/ecusson-canada-goose_168.html

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

http://www.canadagoosefemmehomme2016.fr/homme-canada-goose_350.html

http://www.canadagoosefemmehomme2016.fr/ou-acheter-canada-goose-en-france_308.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-outlet-france_122.html

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-suisse_41.html

http://www.canadagoosefemmehomme2016.fr/veste-canada-goose-femme_274.html

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

http://www.canadagoosefemmehomme2016.fr/parka-canada-goose-soldes_241.html

http://www.canadagoosefemmehomme2016.fr/foxe-bomber-canada-goose_392.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-expedition-homme_207.html

http://www.canadagoosefemmehomme2016.fr/constable-canada-goose_67.html

http://www.canadagoosefemmehomme2016.fr/canada-goose-logo_212.html

Comment by sguerra376 1 day ago

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

www.canadagoosefemmehomme2016.fr/comment-reconnaitre-une-canada-goose_478.html

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-dawson-parka_374.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-noir-homme_384.html

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

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

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

www.canadagoosefemmehomme2016.fr/parka-goose-canada_46.html

www.canadagoosefemmehomme2016.fr/ontario-canada-goose_96.html

www.canadagoosefemmehomme2016.fr/solaris-parka-canada-goose_110.html

www.canadagoosefemmehomme2016.fr/macmillan-canada-goose_270.html

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

www.canadagoosefemmehomme2016.fr/chilliwack-bomber-canada-goose_372.html

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

www.canadagoosefemmehomme2016.fr/parka-trillium-canada-goose_333.html

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

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

www.canadagoosefemmehomme2016.fr/parka-chateau-canada-goose_94.html

Comment by sguerra376 22 hours ago

Your point of view

You must be signed in to comment.