Saturday, April 23, 2016

Bash profile

lsof -n -i4TCP:$PORT | grep LISTEN
I added the next function in my .bash_profile,
function pslisten {
    echo `lsof -n -i4TCP:$1 | grep LISTEN`
}

No comments: