What are the units of du?
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. The allocation unit is file system specific.
What is du command?
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.
What does du stand for in Linux?
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.
What size does du return?
By default, du returns in 1024 bytes or 1 kilo-bytes format but this can be changed using –block-size option or DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables.
How do I find du command in Linux?
The du command displays disk usage. Using it without any options will recursively check every folder and subfolders in the current working directory. To utilize the basic usage of the du command, simply open a terminal window, type du, and hit Enter.
What is Lsblk in Linux?
lsblk lists information about all available or the specified block devices. The lsblk command reads the sysfs filesystem and udev db to gather information. If the udev db is not available or lsblk is compiled without udev support, then it tries to read LABELs, UUIDs and filesystem types from the block device.
How check VAR free space?
use df -k /var – will give you available and used space.
What is du in bash?
du command, short for disk usage, is used to estimate file space usage. The du command can be used to track the files and directories which are consuming excessive amount of space on hard disk drive.
What is du command in Linux?
Last Updated : 17 Oct, 2019 du command, short for disk usage, is used to estimate file space usage. The du command can be used to track the files and directories which are consuming excessive amount of space on hard disk drive.
How to use du command to show disk usage stats?
du – show disk usage stats 1 Basic du command usage. The simplest form of using du is when you run it with no additional parameters. 2 Specifying block size for du reports. Like it was mentioned before, du calculates all the sizes in blocks of data. 3 Report sizes of both files and directories. 4 Summarizing du reports. 5 See Also
What are the units of a file in Linux?
Units are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, (powers of 1000). Reports the size of each file in the current directory with the extension .txt.
What is the size of the du report in Ubuntu?
Using -a parameter, it is possible to have du report sizes of not only the directories, but all the files as well. Compare this (directory sizes): root@ubuntu# du -h 4.0K ./.aptitude 16K ./.mc 8.0K ./.ssh 8.0K ./.update-manager 4.0K ./Mail 92K .