This commit is contained in:
Chris Lane 2013-09-01 13:30:44 -04:00
commit 9dfefc25aa
2 changed files with 6 additions and 1 deletions

View file

@ -22,3 +22,5 @@ find ./path/ -name '*.txt' | xargs grep 'string'
# To find files with size bigger than 5 Mb and sort them by size:
find ./ -size +5M -type f -print0 | xargs -0 ls -Ssh
# To find files bigger thank 2 MB and list them:
find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

View file

@ -1,2 +1,5 @@
# To find listening ports
# To find listening ports:
lsof -Pnl +M -i4
# To find which program is using the port 80:
lsof -i TCP:80