This is a simply command in Linux to check the no. of connection opened per IP.
/bin/netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -nr |more
This is a simply command in Linux to check the no. of connection opened per IP.
/bin/netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -nr |more
Ever tried to delete 100,000 files with rm? Got the following error message?
/bin/rm: Argument list too long.
Heh yeah me too.
Here is the solution: (lets say you want to delete all files that end with .mbox)
find . -name ‘*.mbox’ -print0 | xargs -0 rm
Recently my mail server went out of control, the end result, thousands of duplicate emails.