I was shown this maybe my second day on my first job with the title “System Admin”. It worked on Solaris 2.4, and has continued to be useful through AIX, HPUNIX, Red Hat, Ubuntu, Debian, Gentoo, Crunchbang, other variants of Solaris, BSD, etc. One of the best parts of being a UNIX sysadmin instead of…
Continue ReadingUNIX
removing older files with find
find . -mtime +7 -exec rm {} \; This finds and deletes files with a modified time exceeding 7 days… Every once in a while this becomes hugely necessary in pruning older logfiles, Since it has an “rm” command in it, I always look for the exact syntax and test. –doug
Continue Readingchecking inside rpms
Nine years ago I was trying to find which RPM contained the executable “cluconfig” for configuring clustering – I made these notes on looking for a file in rpms SUMMARY: needed cluconfig for Cluster Manager – searched for cluconfig in install disks for RHAS NOTES: mount the disk, cd to RPMS directory, run: for i…
Continue Reading- 1
- 2