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 :: youtube-dl uninstall mac 
Shell :: rpm install google-chrome-stable in cmd 
Shell :: how to merge git branch to master 
Shell :: remove upstream git 
Shell :: s3 cli get list of files in folder 
Shell :: when was kali linux released 
Shell :: install powershell using cmd windows 10 
Shell :: split command in splunk 
Shell :: ubuntu instlal kubectl 
Shell :: untrack folder git 
Shell :: edit default port for linux server 
Shell :: add image to readme 
Shell :: ssh download file 
Shell :: set path environment variable mac permanently 
Shell :: vlc 
Shell :: install-nodejs-and-npm 
Shell :: unable to install mongodb on ubuntu 22.04 
Shell :: remove folder from repo but keep locally 
Shell :: how to install wsl 2 in windows 10 
Shell :: linux create user with home directory 
Shell :: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. 
Shell :: install chromedriver linux 
Shell :: linux external hard drive chmod 
Shell :: Finding Apache http Process 
Shell :: shell case example 
Shell :: django shell get db info 
Shell :: how to install grub 
Shell :: bash rm all except 
Shell :: clone branch in git 
Shell :: Show up usb drive in ubuntu if it mounts 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =