3 ms·
There's a few typos in this, in case it helps: ps auxww -> ps auxww -H (H is hierarchy) Faster than lsof, and only displays files - although most things i
by 3amOpsGuy 14y ago
There's a few typos in this, in case it helps:
ps auxww -> ps auxww -H (H is hierarchy)
Faster than lsof, and only displays files - although most things in unix are files!
lsof -p -> ls -l /proc/$PID/fd
Run something forever
watch command
Overview of all disks du should be df.
Find files over 100mb
find . -size +100M
Low hanging fruit for size
ls -al | sort -nk5
Files created (modified) within the past 7 days:
find . -mtime -7
Find files older than 14 days:
find .gz -mtime +14 -type f
This will break when you have more archived files in the directory than the shell's glob char can support. Use:
find . -mtime +14 -type f -name '*.gz'
and it will run quicker too.
TCP Sockets in use, "netstat -antp" will be faster and also lists the process id.
EDIT: formatting
- sudara 14y agoThanks for catching the ps aux and for the refinements! Deploying new version now...
- activepeanut 14y agoInstead of: ls -al | sort -nk5 I suggest: ls -larS
- 3amOpsGuy 14y agoI upvoted you the other day and it seems coming back today i have the upvote option again? Weird. Either way, have an upvote!