The entry for port 80 is even commented: http 80/tcp www # WorldWideWeb http.
Cool, so that makes a little more sense, but what about the -wni flags we pass into it?Join them; it only takes a minute: Sign up, here's how it works: Anybody can ask a question, anybody can answer.Ports lower than 1024 have a standardized use (normally you can look up those and many others with less /etc/services.So what happens when we actually run this command when we have something running on port 5000, I am going to spin up a rails server on that port and run the command; command PID user FD type device size/OFF node name ruby 80077 tobyosbourn.It lists open files, displaying information.Escape valve if you really break something: npm run cleanup, further reading, an lsof Primer one piece episode 647 english subbed lsof is the sysadmin/security über-tool.Again man helps us there, reading through the documentation you can find out all about the flags you can use.FD The File Descriptor Number for the file.There are a lot of ways to do this (see here: but this quick-and-dirty approach might help save somebody some time.
PID The Process ID, uSER The User who ran the command.
The first part of our one liner is actually the most alien.
Sign up using Facebook, sign up using Email and Password.
For our purposes the output gives us the Process ID, which is what we want, but for the sake of completeness lets talk about everything here; command The command using port 5000, in our case, ruby.
Then look in the Control Center under System and click Services.
You need to be admin to do anything there.
For what feels like forever I have had to manually search for and then copy and paste code something like; lsof -wni tcp:5000 awk 'NR 1kill -9 2'.Share this on: Did you find this post helpful?If no other obvious service is running that probably means you have something using port 8000 as a daemon kingdom rush 1.13 premium hacked or in the background.Says do the command inside me once per line print 2 is a bash command, this is saying print whatever is stored.Why not read some more of our Development Help posts?This is my script: a(ps ax grep 4990 grep java awk 'print 1 kill -9 a, it's a java program.