$ netstat -nap
(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
nestat
command gives no information about ports are using. For example, I'm running redis-server on this PC but it is not displayed here.
How to I fix this? Linux distro is Microsoft WSL Ubuntu 18.04.
sudo netstat -nap
instead – guiverc Jul 26 '19 at 03:28sudo netstat -nap
gives me same output. – EnDelt64 Jul 26 '19 at 08:34