Get the List of Open Ports in Linux
The command
$ netstat -ntlu
For some distros, e.g. CentOS 7.x, the command has been deprecated and replaced by the following:
$ ss -ntlu
References
- Get a list of Open Ports in Linux - Super User
- Deprecated Linux networking commands and their replacements