Linux ssLast Updated : 17 Mar 2025 The ss command is a replacement for netstat command. This command gives more information in comparison to the netstat. It is also faster than netstat as it gets all information from kernel userspace. Syntax: ![]() Look at the above snapshot, ss command displays all TCP, UDP and socket connections. Listing listening and connected ports of TCP, UDP and UnixIf you want to list connected as well as listening ports for TCP, UDP and Unix use -t, -u and -x respectively with a command. ![]() Listing listening Ports of TCP, UDP and UnixIf you want to list listening ports for TCP, UDP and Unix use -t, -u and -x respectively with l command. Syntax: ![]() Next TopicLinux dig |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India


