How to view the remaining disk space and folder size in Linux

Source: Internet
Author: User
DF-Hl view the remaining disk space The Du-Sm folder returns the total number of MB in the folder. For more information, see DF -- help, the man manual of DF. Usage: Du [Option]... [file]... summarizes the disk usage of each file, and the total usage of the directory is used. Long Options are required when short options are used.
  1. DF-Hl view the remaining disk space
  2. Du-Sm folder
  3. Returns the total number of MB in the folder.
  4. View more functions:
  5. DF -- Help
  6. Du -- Help
  7. Du -- Help
  8. Usage: Du [Option]... [file]...
  9. Summarize the disk usage of each <File>, and the total usage of the directory is used.
  10. Long Options are required when short options are used.
  11. -A, -- all write counts for all files, not just Directories
  12. -- Apparent-size print apparent sizes, rather than disk usage; although
  13. The apparent size is usually smaller, it may be
  14. Larger due to holes in ('sparse') files, internal
  15. Fragmentation, indirect blocks, and the like
  16. -B, -- block-size = size use size-byte Blocks
  17. -B, -- bytes equivalent to '-- apparent-size -- block-size = 1'
  18. -C, -- total produce a grand total
  19. -D, -- dereference-ARGs dereference files that are symbolic links
  20. -H like -- Si, but also evokes a warning; will soon
  21. Change to be equivalent to -- dereference-ARGs (-d)
  22. -H, -- human-readable print sizes in human readable format (e.g., 1 K 234 M 2g)
  23. -- Si like-h, but use powers of 1000 not 1024
  24. -K like -- block-size = 1 K
  25. -L, -- count-links count sizes times if hard linked
  26. -L, -- dereference all symbolic links
  27. -P, -- no-dereference don't follow any symbolic links (this is the default)
  28. -0, -- null end each output line with 0 byte rather than newline
  29. -S, -- separate-dirs do not include size of subdirectories
  30. -S, -- summarize display only a total for each argument
  31. -X, -- one-file-system skip directories on different filesystems
  32. -X file, -- exclude-from = file exclude files that match any pattern in file.
  33. -- Exclude = pattern exclude files that match pattern.
  34. -- Max-depth = n print the total for a directory (or file, with -- all)
  35. Only if it is N or fewer levels below the command
  36. Line argument; -- Max-depth = 0 is the same
  37. -- Summarize
  38. -- Help: displays the help information and leaves
  39. -- Version: displays the version information and leaves.

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.