This show socket (ss) command is another command that you can use instead of the netstat command. Here are some examples:
AnnouncementI have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!
This lists (a)ll (t)cp ports.
This lists (a)ll (l)istening (t)cp ports.