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

How to find all open files by a process in Solaris 10

Terminal - How to find all open files by a process in Solaris 10
for i in `pfiles pid|grep S_IFREG|awk '{print $5}'|awk -F":" '{print $2}'`; do find / -inum $i |xargs ls -lah; done
2013-01-24 13:57:19
User: giorger
Functions: awk find grep ls xargs
0
How to find all open files by a process in Solaris 10

Executing pfiles will return a list of all descriptors utilized by the process

We are interested in the S_IFREG entries since they are pointing usually to files

In the line, there is the inode number of the file which we use in order to find the filename.

The only bad thing is that in order not to search from / you have to suspect where could possibly be the file.

Improvements more than welcome.

lsof was not available in my case

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

Mentor bags on sale have grown to be widely used together with the raising number of days due to the range in its solutions, the patterns along with the trusted resources. And today Coach Bags broadcast their best items to be sale made to help you effortlessly get those wanted bag in the affordable price. Coach bags usually are quickly generating their own place among the industry because of its girlie glance and chic contact seems. Girls today like Coach Bags increasingly more because of the elegant models and how at ease believe that achievable bag. Private coach bags totally convey the look in addition to taste with the women of all ages sporting the actual bag.What men and women point out regarding Mentor Bags On Sale?People these days look at mentor bags for sale while economical luxurious company. Trainer is known among the people for the wonderful patterns appropriate for ladies of all the school and each age group. The increasing need for Instructor Bags among persons has grown the work attention between Mentor Makers. Instructor bags have very well held the particular parents personal preference. Private coach bag has changed into a well-known reputable name women of all ages while looking for an authentic and stylish hands bags on the net.The most recent designs in Private coach Bags Upon SaleIn to match the demands of persons Trainer Bag manufacturers are usually coming up with numerous trendy types every day. Bleeker, Personal, Legacy of music, Peyton, Hamptons, Carly, Spot works, Ergo, Addison, Madison, Leach http://www.hermesbeltsbirkinkellybag.co.uk/ plus much more will be the most up-to-date patterns pointed out from the coach bags. Inside the latest kinds of trainer bags you will find variety of selections for every single function along with your each and every design, suitable for every single collection and to transport close to.Reasons the reason Coach Bags Discounted usually are Common?One reason precisely why Instructor Bags are well-known is because their reduced price. Not like some other branded bags you needn't to pay for hundreds and thousands associated with cash to get a individual bag, in reality it is simple to receive your desired bag with each and every model you may need within it, in the affordable price. Inexpensive not only with regard to celebrities along with company ladies also for school teenager manner fanatics. Instructor bags are not only inside adjusted price it offers quality having design. Just what lots of women favor nowadays will be the give bags which are long-lasting and plenty of zipped to avoid their material by getting complicated. If you are a rough person and will not shell out considerably consideration toward protection against your current bag via chafes and then Instructor Bags available for sale are the most useful choice for youCoach Bags With Sale

Comment by stephanieg915 4 days ago

Any kind of people sooo want to have got a camera of your, since they are man or woman that can assist us inside taking all our precious and much-loved instances as well as protect all of them with us all for a long time in addition to previously.In reality acquiring a quality camera that is newest within phrase than it technologies which is full of a lot of functions within it, isn't perhaps difficult right now particularly with a great number of unsecured loan facilities around us.But the biggest thing that will come once the buying of digital camera, which may aid that will photographic camera to be able to previous about a bit longer, is the place all of us be cautious for it maybe in plain english exactly how effectively we dedicate your time in keeping it up.And this is really the only stage where by most people don't have any our own capabilities along with neglect purchasing one in our preferred cameras for the self applied.A one that measure picture taking upon option basic principles could neglect acquiring a high priced camera, in case an individual is out there of photography the idea extremely important for your pet to transport each of the most recent devices associated with their video camera in the digicam bags as the will be the merely thing which assists him in enabling superior photos from correct time (so we are all aware just how much significance is offered to your right timing out there associated with pictures).Although it is likewise challenging and also time intensive for them, just like the technique it would are actually with regard to people (but they also cant cease their particular job), however there are lots of ways by following so it gets to be simple for them to do this and the most critical point of most is usually to holding a high quality digital camera bag because of their photographic camera.The electronic digital cameras or maybe the video cameras are comprised of a lot of small digital areas which are really sensitive to airborne debris as well as h2o so it will be extremely important for us in order to save these from the identical after they are bought in addition to their total accent package.A camera bag must perfectly satisfy your digicam as it might help in helping you digital camera coming from dirt as well as water.There are numerous individuals who purchase their video camera bag bigger the original size the camera so that they can adjust other issue along with it, although doing so may harm presently there costly solution, and that is the very motive you should http://www.hermesbeltsbirkinkellybag.co.uk/ often prefer getting a completely installation in addition to specifically designed digital camera bag because of their cameras such as get a Straight talk photographic camera bags with regard to Samsung camera or perhaps invest in a Nikon digicam bag with regard to Nikon digital camera.There tend to be likelihood that you may possibly find cost of this kind of such as Samsung digital camera bags or even Nikon video camera bag a lttle bit larger in a nearby store towards you, therefore previous to buying the identical accomplish pay a visit to several shopping on the web internet websites with India,because there are probabilities which you might find the very same product in less price tag.

Comment by stephanieg915 4 days ago

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-payer-en-plusieurs-fois_152.html

www.canadagoosefemmehomme2016.fr/canada-goose-kensington-parka-femme_448.html

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

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

www.canadagoosefemmehomme2016.fr/parka-homme-canada-goose_84.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/doudoune-goose-canada_292.html

www.canadagoosefemmehomme2016.fr/acheter-canada-goose-pas-cher_124.html

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-pas-cher_455.html

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

www.canadagoosefemmehomme2016.fr/citadel-parka-canada-goose_62.html

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

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

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-a-vendre_450.html

Comment by sguerra376 14 hours ago

www.canadagoosefemmehomme2016.fr/acheter-doudoune-canada-goose_258.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-langford-parka_444.html

www.canadagoosefemmehomme2016.fr/doudoune-canada-goose-femme-prix_362.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-200_411.html

www.canadagoosefemmehomme2016.fr/canada-goose-occasion-femme_282.html

www.canadagoosefemmehomme2016.fr/heli-arctic-canada-goose_441.html

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

www.canadagoosefemmehomme2016.fr/shelburne-canada-goose_418.html

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/blouson-canada-goose-homme_467.html

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

www.canadagoosefemmehomme2016.fr/huron-bomber-canada-goose_335.html

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-pas-cher_310.html

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

www.canadagoosefemmehomme2016.fr/canada-goose-chateau-pas-cher_173.html

Comment by sguerra376 7 hours ago

Your point of view

You must be signed in to comment.