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

Show which programs are listening on TCP and UDP ports

Terminal - Show which programs are listening on TCP and UDP ports
netstat -plunt
2009-02-06 06:04:32
Functions: netstat
15
Show which programs are listening on TCP and UDP ports

-p Tell me the name of the program and it's PID

-l that is listening

-u on a UDP port.

-n Give me numeric IP addresses (don't resolve them)

-t oh, also TCP ports

Alternatives

There are 8 alternatives - vote for the best!

Terminal - Alternatives

Know a better way?

If you can do better, submit your command here.

What others think

really nice, but in Ubuntu you must use 'sudo' before that command if you wish to see the pids. :)

Comment by eseven73 413 weeks and 4 days ago

You can see names and PIDs of the processes you own.

From the man page...

PID/Program name:

Slash-separated pair of the process id (PID) and process name of the process that owns the socket.... You will also need superuser privileges to see this information on sockets you don?t own.

Comment by JamesGreenhalgh 413 weeks and 3 days ago

Roscoe Audigier, the particular designer at the rear of the fishing line associated with Impotence problems Resistant, really knows their means. After presenting manufacturers like Von Dutch in the spotlight, wished to create their own trend collection. This particular motivation had been the actual Impotence problems Robust clothing line according to a well-liked location inside the art of tattoo design musician Wear Impotence Robust.Although Audigier has done almost everything simple to make a collection which is the perfect example of fashion, hasn't definitely avoided the comfort factor along with flexibility. It is apparent, a lot more than some other rolling around in its brand of handbags along with totes.Very generally, this developer handbags are not shipped using the person under consideration. The actual purses tend to be small, or maybe solely employed for adornment. The shape are going to be complicated, certainly not sufficiently little to be lightweight, although not sufficient to transport everything required to get a evening.This is not really the way it is intended for Erectile dysfunction Hardy bags. They may be obviously intended for a elegant lifestyle. Their own bags are available in all size and shapes, which is difficult to get something will not be in the current short period. You'll find bags small and big bags for a nights on the town. Several, including the Male impotence Healthy Denim Desiree Bag , also feature a smaller sack.Another wonderful thing about bags Impotence problems Robust, is that you can sense safe and sound with the knowledge that no longer lose track of your bag in a club or restaurant. Having multi-colored patterns such as the range of Ed Hardy Sally Bag, you may keep your door, understanding that a bag will be each fashionable in addition to useful.So should you be looking for a handbag to get a nighttime out and about or possibly a bag daily to look at to function or sightseeing and tours, the cloths line connected with Ed Robust bags are nearly guaranteed to have what you are looking . It really is tennis ball so the as well as Burberry http://www.hermesbeltsbirkinkellybag.co.uk/ shows the woman in the dresser because he would have to be insane to look without a bag Erectile dysfunction Healthy come early july.

Comment by stephanieg915 3 days ago

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/mystique-canada-goose_343.html

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-a-vendre_404.html

www.canadagoosefemmehomme2016.fr/canada-goose-chilliwack-bomber-pas-cher_465.html

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

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

www.canadagoosefemmehomme2016.fr/manteau-femme-canada-goose_248.html

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

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

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

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

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

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

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

www.canadagoosefemmehomme2016.fr/usine-canada-goose_85.html

Comment by sguerra376 1 day ago

www.canadagoosefemmehomme2016.fr/doudoune-femme-canada-goose-pas-cher_407.html

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

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

www.canadagoosefemmehomme2016.fr/manteau-femme-canada-goose_248.html

www.canadagoosefemmehomme2016.fr/fourrure-canada-goose_70.html

www.canadagoosefemmehomme2016.fr/hommes-canadian-goose_102.html

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

www.canadagoosefemmehomme2016.fr/ou-acheter-une-doudoune-canada-goose_348.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-borden-bomber_196.html

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

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

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

www.canadagoosefemmehomme2016.fr/canada-goose-suisse-prix_276.html

www.canadagoosefemmehomme2016.fr/canada-goose-parka-trillium-femme_429.html

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

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

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

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

www.canadagoosefemmehomme2016.fr/manteau-canada-goose-pas-cher_42.html

www.canadagoosefemmehomme2016.fr/vetement-canada-goose_368.html

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

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

Comment by sguerra376 1 day ago

http://www.canadagoosefemmehomme2016.fr/hommes-canadian-goose_102.html

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/nouvelle-collection-canada-goose_451.html

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

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

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

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

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

http://www.canadagoosefemmehomme2016.fr/revendeur-canada-goose-paris_266.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/jogging-canada-goose_399.html

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

http://www.canadagoosefemmehomme2016.fr/parajumpers-canada-goose_203.html

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

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-hybridge-hoody_382.html

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

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

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

Comment by sguerra376 15 hours ago

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-noir-femme_346.html

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

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

http://www.canadagoosefemmehomme2016.fr/boutique-en-ligne-canada-goose_131.html

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

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

http://www.canadagoosefemmehomme2016.fr/canada-goose-ou-parajumpers_414.html

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

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

http://www.canadagoosefemmehomme2016.fr/yorkville-canada-goose_463.html

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

http://www.canadagoosefemmehomme2016.fr/revendeur-canada-goose_106.html

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

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

http://www.canadagoosefemmehomme2016.fr/une-canada-goose_222.html

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

http://www.canadagoosefemmehomme2016.fr/parajumpers-canada-goose_203.html

http://www.canadagoosefemmehomme2016.fr/doudoune-canadian-goose_205.html

http://www.canadagoosefemmehomme2016.fr/tuque-canada-goose_439.html

http://www.canadagoosefemmehomme2016.fr/goose-femme_52.html

http://www.canadagoosefemmehomme2016.fr/jogging-canada-goose_399.html

http://www.canadagoosefemmehomme2016.fr/canada-triple-goose_260.html

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

Comment by sguerra376 3 hours ago

Your point of view

You must be signed in to comment.