㈠ 從根目錄尋找大於50MB的檔案,並按大小列表顯示前10個:
[root@Rocky ~]# find / -printf "%k %p\n"|sort -g -k 1,1|\awk '{if($1>50000) print $1/1024 "MB" " " $2}'|tail -n 10111.968MB /mnt/hgfs/vmshare/Disk1/oms/Disk1/stage/Components/oracle.sysman.agent.download/10.2.0.1.0/1/DataFiles/filegroup5.1.1.jar250.258MB /u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_sysaux_8p06vgsb_.dbf260.266MB /u01/app/oracle/oradata/oracle10/sysaux01.dbf318.878MB /mnt/hgfs/vmshare/10201_database_linux32.zip350.157MB /mnt/hgfs/vmshare/B24219-01_4of6.zip467.697MB /mnt/hgfs/vmshare/linux_11gR2_grid.zip480.48MB /u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_system_8p06t0nt_.dbf480.48MB /u01/app/oracle/oradata/oracle10/system01.dbf1500MB /mnt/hgfs/vmshare/vm/vm01.img1677.5MB /mnt/hgfs/vmshare/rhel-server-5.8-i386-dvd.iso
㈡ 從目前的目錄開始, 尋找本目錄下大於10M的檔案並顯示詳細資料:
[oracle@Rocky oradata]$ find . -size +10000000c -exec ls -lh {} \;-rw-r----- 1 oracle oinstall 26M Apr 9 2013 ./oracle10/undotbs01.dbf-rw-r----- 1 oracle oinstall 261M Apr 9 2013 ./oracle10/sysaux01.dbf-rw-r----- 1 oracle oinstall 51M Apr 9 2013 ./oracle10/redo02.log-rw-r----- 1 oracle oinstall 21M Apr 8 2013 ./oracle10/temp01.dbf-rw-r----- 1 oracle oinstall 51M Apr 8 2013 ./oracle10/redo03.log-rw-r----- 1 oracle oinstall 481M Apr 9 2013 ./oracle10/system01.dbf-rw-r----- 1 oracle oinstall 51M Apr 8 2013 ./oracle10/redo01.log