Contents
What unit does du use?
Usage notes du computes file space in units of 512 bytes. The actual disk space used by files and directories may be more, since some systems allocate space in units of some multiple of a sector. On UNIX System V, it is usually two sectors; on UNIX Version 7, it is one sector.
What does du mean in Linux?
disk usage
du (abbreviated from disk usage) is a standard Unix program used to estimate file space usage—space used under a particular directory or files on a file system.
How do I find the size of a directory in AIX?
Type “du -a -m” then press the “Enter” key. This action will display the file size in megabytes for the files located in the current directory. Or type “du -a” then press “Enter.” This will display the file size in bytes for the files located in the current directory.
What is the use of du in Linux?
The du command is a standard Linux/Unix command that allows a user to gain disk usage information quickly. It is best applied to specific directories and allows many variations for customizing the output to meet your needs. As with most commands, the user can take advantage of many options or flags.
When to use du ( disk usage ) in Linux?
This may be helpful if we want to search for files larger than a specified size which would be useful in finding large single files that may be using the majority of your disk space. In this example only files and directories that are larger than 100MB are returned.
How to find size of directory with du command in Linux?
Brief: The du command in Linux is used for checking the size of directory. Here are various ways you can find the size of directory in Linux with the du command. Knowing the size of a file is easy in Linux. All you have to do is to use the -l and -h option with the ls command…
How can I find out how much disk space my directory is using?
Du (disk usage) reports the disk space usage for the directory you specify. By default it recurses directories to show the total size of a directory and its subdirectories. Using Disk Usage (DU)
How to check disk space usage in Linux?
By default so far we have seen the disk space usage of directories rather than specific files. While this does allow us to check the directories to see what is using the space, we can optionally make use of the -a option which will show all files as well.