Mac & Ubuntu Commands - v2
how to kill port / port kill / kill port:
netstat -vanp tcp | grep 3000
sudo lsof -i tcp:5432
kill 8787
or
lsof -t -i:8000
or
kill $(lsof -t -i:1090)
https://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac# command
how to clear the file?
: > hello.txt
https://askubuntu.com/questions/390167/how-to-clear-text-in-a-filescreen
https://askubuntu.com/questions/302662/reattaching-to-an-existing-screen-sessionnetstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:8000 0.0.0.0:* LISTEN 1/pythonyxs
Last updated
Was this helpful?