Linux df command

linux df command

Use the Linux df command to show free disk space. How do I show Linux disk space information.

5G 20G 11% / devtmpfs 2. 0G 0% /dev tmpfs 2. 0G 0% /sys/fs/cgroup tmpfs 2. Df -h Filesystem Size Used Avail Use% Mounted on /dev/root 24G 2. 0G 0% /tmp tmpfs 396M 0 396M 0% /run/user/1000 How to show the file system type. To view disk space in human readable format pass the -h option. 0G 0% /dev/shm tmpfs 2. This prints sizes in powers of 1024 and will append G for Gigabytes, M for Megabytes and B for Bytes. 0G 1% /run tmpfs 2.

Even if you already know about this command, probably one . Df command in Linux provides disk space usage information of your file systems.

We’ve covered many of the important options here. Once you are done practicing them, head to the command’s man page to know more about it. Clearly, df isn’t a difficult tool to understand and use, primarily because majority of its command line options are targeted at customizing the way the tool’s output is produced.

linux df command

An inode is a data structure on a filesystem on a Unix-like operating system that stores all the information about a named file, directory or other filesystem object except its name and its actual data (i. , all of its metadata except for its name). The -i option instructs df to list inode usage instead of block usage. A data structure is an efficient way of storing data.

The 'df' command stand for "disk filesystem", it is used to get full summary of available and used disk space usage of file system on Linux .

Linux df command help and information with df examples, syntax, related commands, and how to use the df command from the command line.

linux df command

This causes only the file system types to be shown. Df -t ext4 Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 24489260 2533840 20693852 11% / How to only exclude specific file system types. The -t option accepts a list of types. To only show specific file system types pass the -t option followed by the filesystem type or types to be shown.

The df command is used to show the amount of disk space that is free on file systems. In the examples, df is first called with no arguments. This default action is .

Df command – Shows the amount of disk space used and available on Linux file systems. Linux command to check disk space.

The other filesystems are for the system to manage directly (ex: udev, tempfs and none). “none” is referring to /sys/fs/cgroup and a couple of /run/* directories. In any case, decided to use “df -h –type=ext4” so that I can be sure I can see the entire space available to me.

A quick way to get a summary of the available and used disk space on your Linux system is to type in the df command in a terminal window.

linux df command

2 thoughts on “Linux df command

  1. Electric Post authorReply

    Know what you’d do if there’s a big disaster, for instance if your products are lost in shipping. When you have all your bases covered, you’ll find obstacles rarely impact you negatively. If your home business is your sole income, you should look into a backup plan.

  2. -7sims- Post authorReply

    Mais il existe un moyen de leur montrer que vous êtes digne de confiance : en plaçant un sceau « Domaine certifié » sur votre site Web. En raison de l’hameçonnage, du détournement de domaine et de toute une liste d’autres escroqueries, les visiteurs du Web sont de plus en plus sur leurs gardes au fil des jours.

Leave a Reply

Your email address will not be published. Required fields are marked *