The internet is awash with many third-party applications which are used to monitor disk space in Linux. Bash comes with an inbuilt command line tool called df – short for disk filesystem and is used to retrieve
Linux df command If you wish to view the disk usage of your Linux system the df command is quite useful. In this article, we’ll list several usages of the Linux df command. Basic df usage This will list blocks, used and available disk usage in a human-readable format df -h Show in...
This article discusses how to use the df command. Learn df's syntax The df command can be run by any user. Like many Linux commands, df uses the following structure: df [OPTION]... [FILE]... The df command primarily checks disk usage on a mounted filesystem. If you don't include...
Learn how to use df and its various options to monitor disk usage on critical mount points. Read Moreat Enable Sysadmin
The ‘du’ command, short for disk usage, is another built-in Linux command that estimates file and directory space usage. Here’s how you can use it: du-sh /home/user Bash Copy # Output:# 4.2G /home/user Bash Copy The ‘-s’ flag summarizes the total size of the specified directo...
The problem with this tool is that if you have a larger hard drive to check, it can take a long time to run. Also, because it’s run as the currently logged in user, it doesn’t have access to all directory locations, so the disk usage problem could be in a place the tool can...
If the disk is in use, Check Disk displays a prompt that asks whether you want to schedule the disk to be checked the next time you restart the system. Click Yes to schedule this check. The complete syntax for Check Disk is as follows: CHKDSK [volume[[path]filename]] [/F] [/V] ...
You can run Check Disk from the command line or within other utilities. At a command prompt, you can test the integrity of the E drive by typing the following command: Copy chkdsk E: To find and repair errors that are found in the E drive, use the following command: Copy chkdsk ...
Usually, there are three ways to format an SD card: File Explorer, Disk Management, or third-party format software.Use File Explorer:Step 1. Open "This PC".Step 2. Find and right-click your SD card. Choose "Format" in the menu. (If your SD card not showing up on your computer, ...
To format a disk partition as EXT4 in Linux, you can use the 'mkfs' command; the exact command will be:mkfs.ext4 /dev/[device] Replace [device] with the name representing the partition you want to format, such as sda1 or hda2. Also, using this command will erase all data on the ...