Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

archlinux free used port

// Install lsof package (example for archlinux)
sudo pacman -S lsof 

// List ports that are being used
sudo lsof -i -P -n | grep LISTEN

// lsof output example, the 2nd value is the process id (6951)
Discord   6951 damian   49u  IPv4  47939      0t0  TCP 127.0.0.1:6463 (LISTEN)

// kill the process
kill 6951
Comment

PREVIOUS NEXT
Code Example
Shell :: how to create matrix in git bash 
Shell :: show pghba 
Shell :: unable to start test validator. check .anchor/test-ledger/test-ledger-log.txt for errors. 
Shell :: keyboard continuously backspace not working linux 
Shell :: setting config source di linux 
Shell :: pocketsphinx mac big sur 
Shell :: postgres change deafult encode 
Shell :: user friendly linux distro 
Shell :: how to run orange3 on linux 
Shell :: docker exec 
Shell :: npm list commands 
Shell :: how to convert a function from powershell in c# 
Shell :: command line if output of command is equal to string 
Shell :: ubuntu reset to default dash 
Shell :: colcon build limit cores 
Shell :: copy a file from local machine to docker container 
Shell :: install litedb 
Shell :: install svgo linux 
Shell :: shell current week 
Shell :: git, repository, new repository 
Shell :: linux remove null bytes from file 
Shell :: get-docke 
Shell :: MultipleObjectsReturned: get() returned more than one Question -- it returned 3! 
Shell :: mamp mac debug logs 
Shell :: Problem 1: problem with installed package podman-docker-2.2.1-7.module_el8.3.0+699+d61d9c41.noarch 
Shell :: update surge project 
Shell :: nmap run scripts 
Shell :: What command can you type to perform a system state backup? 
Shell :: NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory) 
Shell :: is there any method to do clearscreen mongo shell 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =