10/25/2023 0 Comments Bash find file name spaces![]() The du command is very useful to track down disk space hogs. Linux check disk space with the du command Or read its man page by typing the following command: Pass the -help option see a brief help message: Pass the -a or -all option to the df command to include in its output filesystems that have a size of zero blocks, run:įilesystem 1K-blocks Used Available Use% Mounted on ![]() To list all but exclude ext2 filesystem pass the -x TYPE option, enter: $ df -t btrfs #Only see btrfs file system ![]() Limit listing to file systems of given type Pass the -T option to display the type of each filesystems listed such as ext4, btrfs, ext2, nfs4, fuse, cgroup, cputset, and more:įilesystem Type Size Used Avail Use% Mounted on To list inode information, enter:įilesystem Inodes IUsed IFree IUse% Mounted onįind out the type of each file system displayed $ df -k # Show output size in one-kilobyte blocks (default)ĭisplay output using inode usage instead of block usageĪn inode is a data structure on a Linux file system that stores all information about file. $ df -m # Show output size in one-megabyte You will device size in gigabytes or terabytes or megabytes: Pass the -h option to see output in human readable format. For example, the following command provides information only for the partition /dev/sda:įilesystem Type Inodes IUsed IFree IUse% 1K-blocks Used Avail Use% File Mounted on You can give a device or mount point as an argument, and df report data only for the filesystem physically residing on that device. See information about specific filesystem no arguments), to see a table that lists for each device name on the system. The items in square brackets are optional. Open the terminal and type the following command to check disk space. btrfs fi df /device/ – Show disk space usage information for a btrfs based mount point/file system. ![]() du command – Display the amount of disk space used by the specified files and for each subdirectory.df command – Shows the amount of disk space used and available on Linux file systems.Linux offer the following commands to check disk space usage: How do I find out disk space utilization information using command line option? I am using Ubuntu LTS 16.04 and CentOS 7.x server. I recently switched from a Windows server to a Linux server operating system and need Linux check disk space command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |