mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Merging.
This commit is contained in:
commit
9dfefc25aa
2 changed files with 6 additions and 1 deletions
|
@ -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 }'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue