Comment by xk3
Note that you can do a lot of this by just querying systemctl with the PID
systemctl status 1
And there might be more than one process using a port sudo lsof +c 0 -i:22Note that you can do a lot of this by just querying systemctl with the PID
systemctl status 1
And there might be more than one process using a port sudo lsof +c 0 -i:22