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 · 294 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 · 32 weeks and 6 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 · 32 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 · 32 weeks ago
any new recent updates with the forum?? https://bookkeepingrenonv.com
Killersmile · 29 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 · 18 weeks and 6 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 · 18 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 · 18 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 · 16 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 · 16 weeks and 4 days ago
Excellent and very exciting site. Love to watch. Keep Rocking. Osteopathie Wiesbaden
xoheko1229 · 15 weeks 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 · 14 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 · 14 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 · 13 weeks and 3 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 · 12 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 · 11 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 · 11 weeks and 3 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 · 9 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 · 9 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 · 8 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 · 8 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 · 6 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 · 6 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 · 6 weeks and 4 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 · 6 weeks and 1 day ago
Thank you for taking the time to publish this information very useful! see this
xoheko1229 · 5 weeks and 5 days ago
Thank you for taking the time to publish this information very useful! http://www.lux01.net/">??????
xoheko1229 · 5 weeks ago
Thank you for taking the time to publish this information very useful! http://www.lux01.net/">??????
xoheko1229 · 5 weeks ago
Thank you for taking the time to publish this information very useful! http://www.lux01.net/">??????
xoheko1229 · 5 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 · 5 weeks ago
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. ???
xolabemo · 2 weeks and 5 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 · 2 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 · 2 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 · 1 week 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 · 1 week 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 · 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 · 1 day 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: