News for hackers. Stuff that matters.
Re:Devops/Sysadmin Cheatsheet by 3amOpsGuy on Friday January 11, 2013 @02:29PM (#5044465)
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

Re:Devops/Sysadmin Cheatsheet by activepeanut on Friday January 11, 2013 @08:22PM (#5046054)
Instead of:

  ls -al | sort -nk5
I suggest:

  ls -larS
Re:Devops/Sysadmin Cheatsheet by 3amOpsGuy on Wednesday January 16, 2013 @10:39AM (#5067221)
I upvoted you the other day and it seems coming back today i have the upvote option again? Weird.

Either way, have an upvote!

Re:Devops/Sysadmin Cheatsheet by sudara on Friday January 11, 2013 @03:46PM (#5044897)
Thanks for catching the ps aux and for the refinements! Deploying new version now...