check open ports without netstat or lsof

declare -a array=($(tail -n +2 /proc/net/tcp | cut -d":" -f"3"|cut -d" " -f"1")) && for port in ${array[@]}; do echo $((0x$port)); done

6
By: andreisid
2016-01-12 10:24:44

1 Alternatives + Submit Alt

What Others Think

could be improved by filtering out connections bound to 0100007f and showing only listening connections. Also doesn't show listening udp .
Mozai · 324 weeks and 2 days ago
I love the way you write and share your niche! Very interesting and different! Keep it coming! cozumel mexico beaches
xoheko1229 · 62 weeks and 5 days ago
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. trip to tulum mexico
xoheko1229 · 62 weeks and 1 day ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. trip to tulum mexico
xoheko1229 · 62 weeks ago
any new recent updates with the forum?? https://bookkeepingrenonv.com
Killersmile · 59 weeks ago
The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. things to do in cozumel
xoheko1229 · 48 weeks and 5 days ago
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine. Fókuszpályázat" rel="nofollow">http://www.fokuszpalyazat.hu/'>Fókuszpályázat pályázatírás Debrecen
xoheko1229 · 48 weeks and 3 days ago
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. St Thomas Boat Charter
xoheko1229 · 48 weeks ago
Thanks for taking the time to discuss that, I feel strongly about this and so really like getting to know more on this kind of field. Do you mind updating your blog post with additional insight? It should be really useful for all of us. staffing software
xoheko1229 · 46 weeks and 4 days ago
I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. staffing software
xoheko1229 · 46 weeks and 4 days ago
Excellent and very exciting site. Love to watch. Keep Rocking. Osteopathie Wiesbaden
xoheko1229 · 44 weeks and 6 days ago
Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint. unabhängiger Finanzberater
xoheko1229 · 44 weeks and 4 days ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. mua hàng trên mercari
xoheko1229 · 44 weeks and 1 day ago
If you set out to make me think today; mission accomplished! I really like your writing style and how you express your ideas. Thank you. cozumel
xoheko1229 · 43 weeks and 2 days ago
Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! dizajnovy blog
xoheko1229 · 42 weeks ago
Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. ????????
xoheko1229 · 41 weeks and 5 days ago
Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. free keto diet plan for beginners
xoheko1229 · 41 weeks and 2 days ago
Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. rateio
xoheko1229 · 39 weeks and 6 days ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. https://eclipse-health.com/
xoheko1229 · 39 weeks ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. introverts definition
xoheko1229 · 38 weeks and 4 days ago
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. how to calculate enterprise value using dcf
xoheko1229 · 38 weeks and 2 days ago
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. http://binsmarketing.com/">??????
xoheko1229 · 36 weeks and 6 days ago
This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!. macos tips
xoheko1229 · 36 weeks and 5 days ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. ????
xoheko1229 · 36 weeks and 3 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all yoperfect health ur help and wishing you all the success in your business.
xoheko1229 · 36 weeks and 1 day ago
Thank you for taking the time to publish this information very useful! see this
xoheko1229 · 35 weeks and 4 days ago
Thank you for taking the time to publish this information very useful! http://www.lux01.net/">??????
xoheko1229 · 35 weeks ago
Thank you for taking the time to publish this information very useful! http://www.lux01.net/">??????
xoheko1229 · 35 weeks ago
Thank you for taking the time to publish this information very useful! http://www.lux01.net/">??????
xoheko1229 · 35 weeks ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. ?????
xoheko1229 · 34 weeks and 6 days ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. ???
xolabemo · 32 weeks and 4 days ago
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. ????
xolabemo · 32 weeks ago
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. ????
xolabemo · 32 weeks ago
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks ???????
xolabemo · 31 weeks and 5 days ago
I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog my lowes life
xolabemo · 31 weeks and 1 day ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. Werbeagentur Waiblingen
xolabemo · 30 weeks and 3 days ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. Cherada
xolabemo · 30 weeks and 1 day ago
I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,.. http://www.nunesleiloes.com.br/">leilao imoveis
xolabemo · 29 weeks and 5 days ago
Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks! ????
xolabemo · 29 weeks and 2 days ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. ????
xolabemo · 29 weeks and 2 days ago
I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. custom laptop brands
xolabemo · 29 weeks ago
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful informNapoleon Hill Books ation.
xolabemo · 28 weeks and 2 days ago
Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks, I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks. ??? ??? ??
xolabemo · 27 weeks and 3 days ago
This release is really informative. Need more about Netstat and I'll share this with my partner at Bend Oregon Painting Contractors. Thank you so much
kienbrady07 · 26 weeks and 4 days ago
I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. email marketing companies
xolabemo · 26 weeks and 3 days ago
I just want to let you know that I just check out your site and I find it very interesting and informative.. butik masaj
xolabemo · 26 weeks and 2 days ago
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. ??? ????
xolabemo · 25 weeks and 6 days ago
nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this! ??? ????
xolabemo · 25 weeks and 6 days ago
Thanks a lot for sharing us about this update. Hope you will not get tired on making posts as informative as this. Seo Consulting
xolabemo · 25 weeks and 4 days ago
hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. Space X Stock
xolabemo · 25 weeks and 3 days ago
Great content material and great layout. Your website deserves all of the positive feedback it’s been getting. ????
xolabemo · 24 weeks and 6 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. ????
xolabemo · 24 weeks and 5 days ago
Excellent website you have here, so much cool information!.. Walworth valves supplier
xolabemo · 24 weeks and 3 days ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. Bathroom Supplies
xolabemo · 23 weeks and 6 days ago
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. Bathroom Supplies
xolabemo · 23 weeks and 6 days ago
Thanks for your information, it was really very helpfull.. double sided tape suppliers
xolabemo · 22 weeks and 4 days ago
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! Arborist
xolabemo · 21 weeks and 2 days ago
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! Arborist
xolabemo · 21 weeks and 2 days ago
I read that Post and got it fine and informative. zinc citrate
xolabemo · 21 weeks ago
Nice to read your article! I am looking forward to sharing your adventures and experiences. banklast
xolabemo · 20 weeks and 5 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. ??
xolabemo · 19 weeks and 5 days ago
Thanks so much for sharing this awesome info! I am looking forward to see more posts by you! fotografo em brasilia
xolabemo · 16 weeks and 5 days ago
where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar midnight mint psychedelic chocolate bar origin mango psilo gummies 0.25g-1g origin strawberry psilo gummies 0.25g-1g penis envy psychedelic chocolate bar psilocybin cube gummies vegan dark chocolate psychedelic chocolate bar microdoses brain capsules 50mg-200mg chill capsules 50mg-200mg clarity capsules 50mg-200mg health capsules 50mg-200mg love capsules 50mg-200mg mood capsules 50mg-200mg pure capsules 50mg-200mg social capsules 30 pack 350mg social capsules 5 pack 350mg buy weed online without medical card marijuana flowers types of concentrates cannabis cartridges buy edibles online legal marijuana shatter cannabis wax marijuana hash buy psychedelic online tinctures for anxiety cannabis seeds bank weed smoker accessories birthday cake kush acdc strain ace killer og strain ak 47 strain alaskan thunder fuck alien kush strain ambrosia kush strain atomik moon rocks cbd 40.57% atomik moon rocks diamond 58.77% banana og strain bc big bud strain birthday cake kush blue cheese strain blue dream og kush blue moonrock kush blue rhino strain blueberry kush strain bruce banner strain cannabis trim cherry pie strain cannatonic strain citrix strain dark star kush durban poison strain eleven roses strain g13 haze strain gelato strain girl scout cookies flavors girl scout cookies online granddad purple strain grape nana weed strains grape pie strain green crack strain guava kush strain hawaiian skunk jack herer strain mendo breath weed mighty mango mr nice guy weed blue mystic strain northern lights strain northern lights moon rock platinum og kush gas og strain pink og kush platinum hawaiian strain pootie tang strain purple mimosa strain purple white widow strain smart buds sour diesel weed strain sour moonrock strain space monkey tins strawberry banana weed sun rocks super citrus haze strain super silver haze wedding cake strain exotic white widows strain zombie kush strain all natural pistachio crunch apple fritter vape cartridge aura edibles gummy-candy banana og cartridge birthday cake dank vape pen cartridg biscotti vape cartridge blackberry kush cartridge bliss edibles 300mg thc blue dream cartridge 180mlg berry blue raspberry 500mg-chocolate chip- cookies atomic wheelchair activated thc distillate strike gold blue dream shatter bubba kush shatter cbd dried organic ginger blueberry kush vape cartridges chemdawg shatter 50mg choco chunk cookies cookies and cream vape delta 8 thc capsules do-si-dos cartridges durban poison vape cartridge eds and bills edible candy bags forbidden fruit cartridge fruity pebbles cartridge gelato cartridge 1000mg girl scout cookies shatter girl scout cookies wax gorilla glue #4 wax gorilla glue cartridge gorilla glue shatter grand daddy purple kush wax gsc cartridge hardcore og cartridge jack herer cartridge jack herer wax jet fuel cartridge juicy melon cartridge khalifa kush shatter kosher kush cartridge labanese camel hash lemon berry cartridge
johnson20007 · 15 weeks and 1 day ago
Thank you so much for sharing this great blog.Very inspiring and helpful too.Hope you continue to share more of your ideas.I will definitely love to read. ???????
xolabemo · 9 weeks and 4 days ago
I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. gran cenotes
xolabemo · 9 weeks ago
This article is an appealing wealth of informative data that is interesting and well-written. I commend your hard work on this and thank you for this information. You’ve got what it takes to get attention. vacationing in tulummexico
xolabemo · 8 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. 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.

Share Your Commands



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: