ubuntu fuser command code example
Example 1: fuser to find pid
root@exampleuser-X55CR:~# fuser -v -n tcp 80
root@exampleuser-X55CR:~# fuser -v -n tcp 80
USER PID ACCESS COMMAND
80/tcp: root 3846 F.... nc
root@exampleuser-X55CR:~#
Example 2: how to open port by fuser
root@exampleuser-X55CR:~# fuser -k 123/tcp
123/tcp: 11543