how to clear a 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

5
1
Awgiedawgie 440220 points

                                    kill -9 $(lsof -t -i:8080)

5 (1 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
free a specific port in linux how to free port on linux linux free port 8080 how to make port free in linux make a port free in linux how to check if the port is free in linux linux free specific port free used port linux unix clear port linux free used port how to clear port in linux clear a specific port linux how to check port free or not in linux linux check port is free check port free linux free port on linux linux free port in use free port in use linux clear ports linux how to check if port is free in linux free ports to use linux linux free port' free port unix clean port linux free port command linux basic port in linux server free the port in linux free ports on linux linux clear port forwarding clear a port single command linux check free port in linux clear all ports linux kill a broken program mac terminal how to check a port is open free port 53 ubuntu how to free up all ports in linux how to free a port on linux restart tcp port linux free a port how to free up port in linux how to release a port in linux release port linux free a port in linux command free port linux command linux clear runing port how to free the 8888 port linux how to clear a port linux restart port linux how to restart port in linux how to free a port from service linux reset port free socket linux free tcp ports ubuntu free a port in linux how to restart the port in linux linux free up port linux remove port binding free up a port linux how to free a port in centos 7 fuser kill tcp port linux free ports how to free port linux command for free ports on linux close application using port linux centos clear port linux release port reset all port linux how to deallocate tcp port 80 in linux how to free a port in linux how to clear a port in linux linux free port clear port linux how to remove port binding in linux release a port in linux how to fix a used port linux kill tcp port free port linux how to restart a port in linux how to free port in linux how to free the port in linux ubuntu free up a port deleting tcp port on linux linux command to free a port free port in linux
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source