'find' Command[root@local~]# find / -name filename Find out the path of file[root@local~]# find /tmp -atime +7 -exec rm -fr {} \; Delete the files under /tmp which access day is over 7 days ago.[root@local~]# find /tmp -mtime +7 -exec rm -fr {} \; Delete the files under /tmp which is stored over 7 days ago .[root@local~]# find /home/folder1 -mtime +30 -exec mv {} /home/folder2 \; Find all files in folder1 which is stored over 30 days and move to folder2[root@local~]# find /home -type f -exec sed -i 's/string1/string2/g' {} \; Replace the string from 'string1' to string2' in all files under /homeln -s `find /usr/java/ -name 'libnpjp2.so'` /usr/lib/mozilla/plugins/libnpjp2.so To make symclink for the Firefox 3.6 above to enable Java plusFirst download java rpm from java.com and install it. Server is hosted by Alanstudio Linux Operating System Recommend screen resolution 1024 x 768 / IE / FireFox Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved. |