This fuser 8080/tcp
will print you PID of process bound on that port.
And this fuser -k 8080/tcp
will kill that process.
Works on Linux only. More universal is use of lsof -i4
(or 6 for IPv6).
More Related Contents:
- Linux grep command with relevant values as output
- How to permanently set $PATH on Linux/Unix [closed]
- How to pass command output as multiple arguments to another command
- Is there a way to change the environment variables of another process in Unix?
- How to get overall CPU usage (e.g. 57%) on Linux [closed]
- What does the number in parentheses shown after Unix command names in manpages mean?
- How to merge two files using AWK? [duplicate]
- Sorting multiple keys with Unix sort
- What does `set -x` do?
- Does “argument list too long” restriction apply to shell builtins?
- Given two directory trees, how can I find out which files differ by content? [closed]
- How to split CSV files as per number of rows specified?
- How does SIGINT relate to the other termination signals such as SIGTERM, SIGQUIT and SIGKILL?
- Fast Concatenation of Multiple GZip Files
- Linux/Unix man page syntax conventions
- Is the UNIX `time` command accurate enough for benchmarks? [closed]
- Uppercasing First Letter of Words Using SED
- Concatenating Files And Insert New Line In Between Files
- Why can’t I use Unix Nohup with Bash For-loop?
- Is gettimeofday() guaranteed to be of microsecond resolution?
- How to compare two DateTime strings and return difference in hours? (bash shell)
- How do I get cURL to not show the progress bar?
- Using `date` command to get previous, current and next month
- Joining multiple fields in text files on Unix
- Is there a way to make mv create the directory to be moved to if it doesn’t exist?
- Rename all files in a folder with a prefix in a single command
- Need to remove the count from the output when using “uniq -c” command
- Creating temporary files in bash
- How do you run a script on login in *nix?
- What is the difference between source and export?