lsof (open files & ports)
Në shqip: lsof (skedarët dhe portat e hapura)
ShpjegimiSQ
lsof liston skedarët që ka hapur çdo proces — dhe meqë në Linux edhe lidhjet e rrjetit janë „skedarë“, „lsof -i :3000“ të tregon cili program po e zë portin 3000.
EnglishEN
lsof lists the files each process has open — and since network connections are “files” on Linux too, “lsof -i :3000” tells you which program is hogging port 3000.
Si ta mendosh
Si të pyesësh „kush e ka marrë librin nga biblioteka?“
Lexoje në anglisht
Like asking “who has borrowed that library book?”
Shembull kodibash
lsof -i :3000
# node 4821 arta 23u IPv6 TCP *:3000 (LISTEN)
kill 4821