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

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 · 283 weeks and 4 days ago
I love the way you write and share your niche! Very interesting and different! Keep it coming! cozumel mexico beaches
xoheko1229 · 22 weeks 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 · 21 weeks and 2 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. trip to tulum mexico
xoheko1229 · 21 weeks and 2 days ago
any new recent updates with the forum??
Killersmile · 18 weeks and 1 day 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 · 8 weeks 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">'>Fókuszpályázat pályázatírás Debrecen
xoheko1229 · 7 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. St Thomas Boat Charter
xoheko1229 · 7 weeks and 2 days 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 · 5 weeks and 5 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 · 5 weeks and 5 days ago
Excellent and very exciting site. Love to watch. Keep Rocking. Osteopathie Wiesbaden
xoheko1229 · 4 weeks and 1 day 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 · 3 weeks and 5 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 · 3 weeks and 2 days 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 · 2 weeks and 4 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 · 1 week and 1 day 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 · 6 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 · 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? 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.


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: