I want to use the netstat command like this 'netstat -an | grep LISTEN' to find out what processes are listening to incoming connections. But there is no netstat on my system. Is there a way to install it or is the proper way to use a different command?
$ pkgfile netstat core/net-tools
Last edited by skunktrader (2012-03-19 06:24:12)
Some apps were deleted for these reasons:
http://www.archlinux.org/news/dropping- … s-support/
As you were told, you can install net-tools to get netstat back. Also, you can use the program that comes by default through the package iproute2; ss.
Last edited by ldvx (2012-03-19 07:28:39)
Couple of replacements I can think of:
netstat --> ss
netstat -r --> ip route
netstat -i --> ip -s link
netstat -g --> ip maddr.
Netstat and the net-tools suite have been deprecated for quite some time now, it has been replaced by the iproute2 set of tools.
Read this to learn about the replacement commands.
is quite memorable
I had no idea the ss command existed. On my boxen ss is an alias to 'sudo shutdown -h now'. Will have to change that.
I mapped "bye" to that.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle