free port in linux
Shell
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:
- Title
- heic open linux
- Category
- Shell
- Title
- ubuntu stop process on port
- Category
- Shell
- Title
- git reset keep changes
- Category
- Shell
- Title
- install bootstrap 4 npm
- Category
- Shell
- Title
- gatsby starter hello world
- Category
- Shell
- Title
- linux red hat version
- Category
- Shell
- Title
- git bash Could not open a connection to your authentication agent
- Category
- Shell
- Title
- kali linux change keyboard layout
- Category
- Shell
- Title
- grep for all .py files containing a word
- Category
- Shell
- Title
- how to know partition of current directory
- Category
- Shell
- Title
- npx create-react-app not working
- Category
- Shell
- Title
- git SSL certificate problem: certificate has expired
- Category
- Shell
- Title
- updating git on mac
- Category
- Shell
- Title
- git clean cache
- Category
- Shell
- Title
- find all files edited after date linux
- Category
- Shell
- Title
- linux command to move a file to another directory
- Category
- Shell
- Title
- git authentication failed clone
- Category
- Shell
- Title
- decompress tar.gz
- Category
- Shell
- Title
- change ratio vmware ubuntu
- Category
- Shell
- Title
- force pull github
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- ubuntu check process on port
- Category
- Shell
- Title
- connect local repository to remote git
- Category
- Shell
- Title
- rec: command not found
- Category
- Shell
- Title
- greater than certain value from pipe shell
- Category
- Shell
- Title
- linux show version
- Category
- Shell
- Title
- serverless sqs batch size
- Category
- Shell
- Title
- release tag github
- Category
- Shell
- Title
- linux command for file size
- Category
- Shell
- Title
- force git to use ssh
- Category
- Shell
- Title
- git push pull asks for login everytime
- Category
- Shell
- Title
- git discard unstaged files
- Category
- Shell
- Title
- install zsh debian
- Category
- Shell
- Title
- how to install pip in ubuntu
- Category
- Shell
- Title
- linux shell loop through all inputs except last
- Category
- Shell
- Title
- install gatsby typography
- Category
- Shell
- Title
- how to upload files to s3 bucket from mac shell
- Category
- Shell
- Title
- docker run command on container
- Category
- Shell
- Title
- php artisan doctrine migrations add all
- Category
- Shell
- Title
- git remove tag from remote
- Category
- Shell
- Title
- add alias fish shell
- Category
- Shell
- Title
- mysql backup dump docker file
- Category
- Shell
- Title
- deny directory listing htaccess
- Category
- Shell
- Title
- switch session windows tmux
- Category
- Shell
- Title
- how to unadd gitr file
- Category
- Shell
- Title
- git pull onbly submodule
- Category
- Shell
- Title
- how to add extension to all files terminal
- Category
- Shell
- Title
- cmd for loop
- Category
- Shell
- Title
- install AdminLTE
- Category
- Shell
- Title
- git bash anaconda
- Category
- Shell
- Title
- apache ubuntu Generate CSR stack overflow
- Category
- Shell
- Title
- windows 10 direct inbound port to another device
- Category
- Shell
- Title
- batch rename files
- Category
- Shell
- Title
- iterm full screen cmd
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- rename remote branch in git
- Category
- Shell
- Title
- ssh ubuntu
- Category
- Shell
- Title
- add credentials to git
- Category
- Shell
- Title
- git add gitignore
- Category
- Shell
- Title
- screen sharung zoom linux x11
- Category
- Shell
- Title
- create a docker file
- Category
- Shell
- Title
- matplotlib change he yticks to two number after digit
- Category
- Shell
- Title
- linux tar zip folder
- Category
- Shell
- Title
- remove directory linux
- Category
- Shell
- Title
- linux convert png favicon
- Category
- Shell
- Title
- "at" ubuntu script dschedule
- Category
- Shell
- Title
- git basic command tutorial
- Category
- Shell
- Title
- how to check upstream git
- Category
- Shell
- Title
- Could not install Visual Studio Build Tools.
- Category
- Shell
- Title
- install .net core sdk on linux
- Category
- Shell
- Title
- linux how to see directory data usage
- Category
- Shell
- Title
- use nvm to install latest node
- Category
- Shell
- Title
- how to set up a git repository locally
- Category
- Shell
- Title
- how to tar linux
- Category
- Shell
- Title
- ubuntu dns server
- Category
- Shell
- Title
- how to undo makemigrations django
- Category
- Shell
- Title
- create directory linux
- Category
- Shell
- Title
- run jar file command line
- Category
- Shell
- Title
- rustup
- Category
- Shell
- Title
- install apache2 mysql php ubuntu 18.04
- Category
- Shell
- Title
- update flutter
- Category
- Shell
- Title
- install opencl headers ubuntu
- Category
- Shell
- Title
- golang compile with injected variable
- Category
- Shell
- Title
- github compare commits
- Category
- Shell
- Title
- git show staged files
- Category
- Shell
- Title
- Creating an environment from an environment.yml file
- Category
- Shell
- Title
- shell promt user input
- Category
- Shell
- Title
- using regex in bash conditional statement
- Category
- Shell
- Title
- grub file path
- Category
- Shell
- Title
- rejected master -> master (non-fast-forward)
- Category
- Shell
- Title
- linux delete appledouble ds_store files
- Category
- Shell
- Title
- git view stash
- Category
- Shell
- Title
- github
- Category
- Shell
- Title
- bash count files in directory recursively matchingattern
- Category
- Shell
- Title
- git create new branch from current
- Category
- Shell
- Title
- error document htaccess
- Category
- Shell
- Title
- linux check used space in folder
- Category
- Shell
- Title
- server information in powershell
- Category
- Shell
- Title
- create branch in git
- Category
- Shell
- Title
- git command to create a branch from another branch
- Category
- Shell