Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: how to install sublime text on arch linux 
Shell :: install tmux ubuntu 
Shell :: how to check version of linux command line 
Shell :: install albumentations 
Shell :: git graph 
Shell :: git rename master to main 
Shell :: see ports in use 
Shell :: check battery health windows 
Shell :: conda install librosa 
Shell :: install yarn ubuntu 20.04 
Shell :: git unable to update local ref 
Shell :: install gd extension php ubuntu 
Shell :: lsb_release: command not found 
Shell :: adb port issue fix 
Shell :: php restart 
Shell :: mui install 
Shell :: gpg2 install ubuntu 
Shell :: apache enable site 
Shell :: Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. 
Shell :: nvm install lts 
Shell :: commit no verify 
Shell :: how to set zsh as default 
Shell :: pycharm ubuntu 20.04 
Shell :: android_home ubuntu 
Shell :: install git gui ubuntu 
Shell :: brew install jdk 8 
Shell :: heroku download database 
Shell :: git rm cached gitignore 
Shell :: the remote end hung up unexpectedly fatal: 
Shell :: how to install golang on manjaro 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =