Procedure to check disk size in Linux Open the terminal. Type sudo fdisk -l and press Enter. The output will show information about the disk and partitions. Type df -h and press Enter. The output will show the disk partitions and their sizes as well as the amount of free space on each...
Java JSON Tutorials Parsing JSON with Jackson, Moshi, Gson etc. About Author mkyong Founder ofMkyong.com, love Java and open source stuff. Follow him onTwitter. If you like my tutorials, consider make a donation tothese charities.
To determine the overall unallocated space on the drive, sum up the sizes of all partitions and then compare the total with the drive's total size. Conclusion This article explained how to check disk space in Linux using five different methods. Next, learn how to use thefsck commandto run ...
How to Check the Size of a Directory in Linux Apart from thels -lcommand, there are other, more reliable ways to check the size of a directory in Linux. The following text presents four different methods to find the directory size. du Command Thedu(disk usage) command in Linuxoperating ...
2. Check Information on Linux Disk Space Usage The command"df -a"is used to display information about all the mounted filesystems disk space usage, which includes total space, used space, available space,memory utilization, and the percentage of space used for each filesystem. ...
Method #1: Use the df Command to Check the Disk Space in Linux Thedfcommand is one of the easiestways to check disk space usageand available block size. Launch the terminal and enter the following command: # df As you can see, thedfcommand, which stands for disk free, displays how muc...
To show information about disk devices in human-readable format (kilobytes, megabytes, gigabytes, and so on), use thedf commandwith the -h option: $df -h Filesystem Size Used Avail Use% Mounted on dev 7.8G 0 7.8G 0% /dev run 7.9G 1.8M 7.9G 1% /run ...
Part 1: Overview of Linux Check Disk Part 2: How to Check Linux Disk Part 3: How to Repair Linux Disk Part 4: How to Find Deleted Files from Linux Hard Drive? Part 1. Overview of Linux Check Disk The Linux check disk option checks bad sectors and errors on the drive. ...
Check Linux Disk Usage Using the df Command Check Linux Disk Usage Using the du Command Check Linux Disk Usage Using the GUI Conclusion How to Check Disk Usage on Linux Getting the disk information is quite handy when you’re working with a Linux system, and you have several command-line...
Learn How to Check Disk Space in Linux and Other Administration Tasks If you’re new to running Linux, there’s a lot to learn. Fortunately, there are also many resources for doing that. We are just one such tool. Others includethe Linux man-pages project, which provides a way to view...