Archives 

Show All

  • 2007
    • March
      • List user open sockets on cPanel server
        03/17/07
        As simple as this:


        lsof -n -u^65534,^`cat /etc/passwd | awk -F':' '{if($3 < 32000) print $3}' | xargs | sed -e 's/ /,\^/g'` -i | awk '{if ($2 ~ /[0-9]*/) print $3, $1}' | sort | uniq -c | sort -n


        The awk part is for excludi

    • February