Linux & Terminali

ss & netstat (open ports)

Në shqip: ss dhe netstat (portat e hapura)

ShpjegimiSQ

„ss -tulpn“ tregon cilat porta po dëgjojnë në server dhe cili program i ka hapur. E përdor për të kontrolluar nëse aplikacioni yt po pret vërtet në portin 3000, ose për të gjetur porta të hapura pa nevojë.

EnglishEN

“ss -tulpn” shows which ports are listening on the server and which program opened them. Use it to confirm your app really listens on port 3000, or to spot ports open for no reason.

Si ta mendosh

Si të kontrollosh cilat dritare të shtëpisë janë hapur.

Lexoje në anglisht

Like checking which windows in the house are open.

Shembull kodibash

sudo ss -tulpn
# tcp LISTEN 0.0.0.0:22  users:(("sshd",pid=812))
# tcp LISTEN *:3000     users:(("node",pid=4821))

Terma të lidhur