Multiple choice technology operating systems

how to list the number ports opened on linux system?

  1. portmap

  2. top

  3. netstat -nap

  4. nmap -p

  5. lsof -i -n -P

Reveal answer Fill a bubble to check yourself
C,D,E Correct answer
Explanation

netstat -nap shows all open ports with associated processes. nmap -p scans specified ports (or all if none specified). lsof -i -n -P lists network open files including ports. Options A and B are incorrect - portmap is a daemon, and top shows process CPU/memory info, not ports.