Need to check which ports are open on your Linux system? In this video, we’ll show you how to use the ss command to find open ports with just one simple line: sudo ss -tuln. We also demonstrate starting the Apache web server (sudo systemctl start apache2) and rechecking to confirm ports 80 (HTTP) and 443 (HTTPS) are now open. Perfect for sysadmins, developers, or anyone managing services on Linux!
Learn:
✅ Step-by-Step Guide :
Find Open Ports Using ss :
sudo ss -tuln
(Explanation of options:)
-t: Show TCP sockets.
-u: Show UDP sockets.
-l: Show only listening sockets (i.e., open ports).
-n: Display numerical addresses and ports (no hostname/service resolution).
Check for Specific Ports :
Initially, search for common ports like 80 (HTTP) and 443 (HTTPS) .
If not found, proceed to the next step.
Start Apache Web Server :
Run: sudo systemctl start apache2.
Recheck Open Ports :
Use sudo ss -tuln again to verify that ports 80 and 443 are now active.
✅ Why Check Open Ports?
Security : Ensure only necessary ports are exposed.
Troubleshooting : Verify if services are running correctly.
Service Management : Confirm ports are open after starting/stopping services.
✅ Pro Tips :
Use grep to filter specific ports:
sudo ss -tuln | grep ':80\|:443'
Combine with netstat or nmap for more advanced port scanning.
Regularly check open ports to avoid potential security risks.
Perfect for Linux users who want to monitor or manage their system’s open ports efficiently! Hit subscribe for more networking tips and like if this helped.
Let us know: What service will you check next?
👉 Watch now and master finding open ports in Linux!
#LinuxTips #Networking #PortScanning #Apache2 #SysAdminHacks
(Short, clear, and packed with practical knowledge!)