Search for large files occupying hard disks in GNU/Linux

Source: Internet
Author: User

Search for large files occupying hard disks in GNU/Linux (1) Search for files larger than 50 MB from the root directory, and display the first 10 files in the size list: [plain] [root @ Rocky ~] # Find/-printf "% k % p \ n" | sort-g-k 1,1 | \ awk '{if ($1> 50000) print $1/1024 "MB" "$2} '| tail-n 10 111.968 MB/mnt/hgfs/vmshare/Disk1/oms/Disk1/stage/Components/oracle. sysman. agent. download/10.2.0.1.0/1/DataFiles/filegroup5.1.1.jar 250.258 Mbit/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_sysaux_8p06vgsb _. dbf 260.266 MB/u01/app/oracle/oradata/oracle10/sysaux01.dbf 318.878 MB/mnt/hgfs/vmshare/10201_database_linux32.zip 350.157 MB/mnt/hgfs/vmshare/B24219-01_4of6.zip 467.697 MB/mnt/ hgfs/vmshare/linux_11gR2_grid.zip 480.48 MB/u01/app/oracle/flash_recovery_area/ORACLE10G/datafile/o1_mf_system_8p06t0nt _. dbf 480.48 MB/u01/app/oracle/oradata/oracle10/system01.dbf 1500 MB/mnt/hgfs/vmshare/vm/vm01.img 1677.5 MB/mnt/hgfs/vmshare/rhel-server-5.8-i386-dvd.iso (ii) from the current directory, search for files larger than 10 MB in the current directory and display details: [plain] [oracle @ Rocky oradata] $ find. -size + 0000000c-exec ls-lh {}\;-rw-r ----- 1 oracle oinstall 26 M Apr 9 2013. /oracle10/undotbs01.dbf-rw-r ----- 1 oracle oinstall 261 M Apr 9 2013. /oracle10/sysaux01.dbf-rw-r ----- 1 oracle oinstall 51 M Apr 9 2013. /oracle10/redo02.log-rw-r ----- 1 oracle oinstall 21 M Apr 8 2013. /oracle10/temp01.dbf-rw-r ----- 1 oracle oinstall 51 MB Apr 8 2013. /oracle10/redo03.log-rw-r ----- 1 oracle oinstall 481 M Apr 9 2013. /oracle10/system01.dbf-rw-r ----- 1 oracle oinstall 51 MB Apr 8 2013. /oracle10/redo01.log

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.