tag (terminal)

archive

Find process that is bound to a port Mar
06
1
7

 Sometimes when developing you'll lose control of a process that binds to a specific port. When that happens you can no longer start up another process until you kill the running process that controls the port you want to use.

You can find and kill the process that is controlling the port with the following commands

lsof -i tcp:8000
kill <pid>

comments

continuously print lines of a file as they are added Jul
08
1
3

Use `-f` flag on `tail` to continuously output lines of a file as they are added in the terminal:

tail -f <file>

CTRL-C to stop the process.

comments