free port in linux
netstat -tulnap // list all ports and processes
netstat -anp|grep "port_number" // show port details
sudo fuser -k Port_Number/tcp // free the port needed
# or
lsof -n -i :'port-number' | grep LISTEN // get port details
# sample response: java 4744 (PID) test 364u IP0 asdasdasda 0t0 TCP *:port-number (LISTEN)
kill -9 PID // free port
Also in Shell:
- IP adress terminal
- how to revert commit in git
- checking if a substring exists in a string bash
- switch session windows tmux
- sed replace in file
- ubuntu add public key to server
- linux shell loop through all inputs except last
- linux install ifconfig
- What debian version do i use
- linux os update
- check 64 or 32 bit linux
- kill process on port windows
- crop video from specific time to specific time ffmpeg
- Add correct host key in /c/Users/user/.ssh/known_hosts to get rid of this messag e
- cambiar nombre branch git
- how to save any changes in vi editor
- git push pull asks for login everytime
- git stash contnet
- Error: "could not find a temporary directory"
- check ubuntu version cmd
- pipenv install virtual at same path
- Habilitar la ejecución de scripts para Powershell
- Git Commands: Step By Step Guide (Part 1)
- shell copy