cat /etc/SuSE-release SUSE LINUX Enterprise Server 9 (i586) VERSION = 9
mount -o loop -t iso9660 /home/novell/Identity_Manager_3_DVD.iso /media/cdrom
showrev -p | grep 108993
mkdir -p /nfs/iso /mnt/iso mount -t nfs anf-devlnx01:/srv/iso /nfs/iso mount -t iso9660 -o loop /nfs/iso/Identity_Manager_4.0.2_Linux_Advanced.iso /mnt/iso
grep "Invalid user" /var/log/messages|awk '{print $NF}' | sort|uniq -c|sort -nr|head -n 25
To remove multiple files such as *.jpg or *.sh with one command find, use
find . -name "FILE-TO-FIND"-exec rm -rf {} \;OR
find . -type f -name "FILE-TO-FIND" -exec rm -f {} \;The only difference between above two syntax is that first command can remove directories as well where second command only removes files.
(a) Find all files having .bak (*.bak) extension in current directory and remove them:
find . -type f -name "*.bak" -exec rm -f {} \;(b) Find all core files and remove them:
find / -name core -exec rm -f {} \;(c) Find all *.bak files in current directory and removes them with confirmation from user:
find . -type f -name "*.bak" -exec rm -i {} \;
rm -ri `find . -type d -name "thumbs"`