nix, shell, perl, php, mysql and mac os x tips and tricks

Thursday, July 1, 2004

Find all files starting in the home directory that have not been accessed in the last 30 days

Note that if you run this command a second time there will be no files found because the find command accesses each file in the home directory when it runs.
find ~ -atime +30 -print

Find files edited in last day, recursively

find . -name '*.*' -mtime -1 -print

Re-start MySQL server on FreeBSD

/usr/local/etc/rc.d/mysql-server.sh  { start | stop }