Check Disk Space In Ubuntu Terminal The “df” command is for “disk filesystem” and is a great tool to know about the disk space usage on Linux Systems. The df command displays the amount of disk space available on the file system. If no file name is given, the space available on ...
4. Check Disk Space Usage of /home Directory The command"df -hT /home"is used to display disk space utilization of/homedirectory or partition in a human-readable format. The-Toption shows the filesystem type (ext4) along with other information. df -hT /home Check /home Directory Disk Spa...
To liberate disk space in Linux, begin by pinpointing the files or directories consuming the most storage. The du command can help you evaluate the space usage of particular directories. Once you have identified the directories or files that use a lot of disk space, you can delete, move, or...
As you can see,du -hshows, in human-readable format, how much disk space each directory and subdirectory uses from the present working directory. If you want to check the disk usage for a different directory, you can eithercdto that directory or specify it at the end of the command. du...
To check the disk usage of a specific directory, use: du -h /path/to/directory This command will list the sizes of all files and subdirectories within the specified directory. For instance, if you run: du -h /home/user You should see the following output: ...
Method 2: Check Disk Space via the du Command Theducommand displays disk usage for individual directories in Linux. Use it to display the amount of space used by the current directory: du Like thedfcommand,ducan be human-readable: du -h ...
Method 1: Checking free disk space in Linux with df command (and understanding its output) When you use the df command to check disk space, it will show a bunch of ‘file systems’ with their size, used space and free space. Your actual disks should normally be listed as one of the ...
How to Check Linux Disk Space with the du Command Use the du command to analyze disk space at a more granular level. This command summarizes the space usage for a specified directory or the current directory if none is specified. sudo du /etc/systemd 4 /etc/systemd/system/sockets.target...
--types <list> limit the set of filesystem types -v, --verbose say what is being done -q, --quiet suppress 'not mounted' error messages -N, --namespace <ns> perform umount in another namespace -h, --help display this help -V, --version display version For more details see umoun...
Moreover, you can check the size of the specific directory by specifying the directory path in the command: df-h/dev/sda1 The Du Command The du or disk usage command shows the estimated disk space of the system. This command can check and identify large directories and files. First, plea...