How can I get the mount point "3.1T" under the column " Avail" (using grep or cut)?  Filesystem                            Size  Used Avail Use% Mounted on  vstorage://cluster07                  4.0T  907G  3.1T  23% /vstorage/cluster07
122052
With the command of df, I can get something like:  Filesystem     1K-blocks     Used Available Use% Mounted on /dev/root      197844228 15578648 180242500   8% / devtmpfs         4101368        0   4101368   0% /dev tmpfs             820648      292    820356   1% /run tmpfs               5120        0      5120   0% /run/lock tmpfs            1693720        4   1693716   1% /run/shm   What if I just want to keep the 180242500 number recorded of / and store it in a file (like disk-space-available.txt)  If I use df &gt;&gt; disk-space-available.txt it will store all the content while I just want the raw number in that file.  For example if there is something like this then it's working:  df -OUTPUT=raw-available-number 180242500   What can I do?
114933
How can I get the current disk usage (in %) of my hard drive from the command line?
86952
How to check a particular directory is mounted on the Linux machine. For instance there is a folder named test, I want to check if it is mounted or not.
56385
I have a Virtual machine using centos 7 with 200GB disk.For some reason my layout is:  df -h Filesystem               Size  Used Avail Use% Mounted on /dev/sda1                100GB  95GB  5GB      Running fdisk -l:  Disk /dev/sda: 204.8 GB, 204803670016 bytes,400007168 sectors  Units = sectors of 1 * 512 = 512 bytes  Sector size(logical/physical): 512 bytes / 512 bytes I/O size(minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x0006c283  Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048   199997439    99997696     Linux   I would like to increase my space on my partision /dev/sda1.
84613
The last two fields on each line in fstab (dump and pass) are some numbers (usually, 0). What do these numbers mean? # &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt; proc            /proc           proc    nodev,noexec,nosuid 0       0 UUID=030ccf66-5195-4835-ba3e-f5d7a5403c05 /               ext4    errors=remount-ro 0       1
32611
I used mount to show mounted drives, I don't want to see the not so interesting ones (i.e. non-physical). So I used to have a script mnt that did:  mount | grep -Ev 'type (proc|sysfs|tmpfs|devpts) '   under Ubuntu 8.04 and showed me ext3 and reiserfs mount points only. That line is actually commented out and now I use (for Ubuntu 12.04):  mount | grep -Ev 'type (proc|sysfs|tmpfs|devpts|debugfs|rpc_pipefs|nfsd|securityfs|fusectl|devtmpfs) '   to only show my ext4 and zfs partitions (I dropped using reiserfs).  Now I am preparing for Ubuntu 14.04 and the script has to be extended again (cgroup,pstore). Is there a better way to do this without having to extend the script? I am only interested in physical discs that are mounted and mounted network drives (nfs,cifs).
80106
I want to see how many files are in subdirectories to find out where all the inode usage is on the system. Kind of like I would do this for space usage  du -sh /*   which will give me the space used in the directories off of root, but in this case I want the number of files, not the size.
87204
Possible Duplicate:             How can I quickly check the filesystem of the partition? Can I do that by using df?
79594
How can I find out the size of a block device, such as /dev/sda? Running ls -l gives no useful information.
96909
I mount /tmp on tmpfs using:  sudo systemctl enable tmp.mount sudo systemctl start tmp.mount   But this way /tmp takes up all the free RAM:  $ df -h /tmp Filesystem      Size  Used Avail Use% Mounted on tmpfs           3.9G   12K  3.9G   1% /tmp $   How do I tell systemd tmp.mount to use only 1G? I know I can alternatively not use systemd and manually add an entry to /etc/fstab and specify the size there. But I don't want to do that. I want to use systemd backed tmpfs.
22857
I have a file with an ext4 file system in it and want to mount it without using sudo every time (the script should run with user rights). The file I want to mount and the folder which I want to mount it too both are in my home directory which is encrypted, so I can't put the file location into /etc/fstab.  I tried fusermount but I always get error messages like "fusermount: extra arguments after the mountpoint".
80593
My root filesystem is running out of inodes.  If this were an issue of disk space, I'd use du -s to get a top-level overview of where the space is going, then head down the directory tree to find particular offenders.  Is there an equivalent option for inodes?   will point out individual directories with high usage, but in my case, that's no good: the Linux source directory, for example, gets scattered across 3000+ directories with low inode counts, rather than showing up as /usr/src/linux-4.0.5 52183.
95901
I installed Ubuntu 14.04 recently. During the installation I did not create a separate partition for my home folder. I also accidentally encrypted my home folder. When i did    sudo df   I got the result as  Filesystem                   Size  Used Avail Use% Mounted on /dev/mapper/ubuntu--vg-root  455G  181G  251G  42% / ....   Why does this have a funny name instead of a normal '/dev/sdx'?  Please explain to me what this is?
6571
I am trying to understand how to see the total size of my hard drive &amp; how much is left. It was recommended on various searches to use the command below   df -h Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.6M  1.6G   1% /run /dev/sda1       219G   29G  180G  14% / tmpfs           7.8G   18M  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup cgmfs           100K     0  100K   0% /run/cgmanager/fs tmpfs           1.6G   64K  1.6G   1% /run/user/1000   However I don't understand any of these directories. I mean what are they, are these all directories or partitions or what? And why do they appear under "mounted on"? How does that bit work. I assume the /dev/sda1 is my solid state drive? So now if I install applications, which one of these directories does my software get installed  into? I assume it just gets installs in the / directory (I haven't even got a clue what the / directory is). Can someone explain what the other directories are and what they are used for?
58243
How can I get hard disk capacity, usage, etc. using the /proc or /sys filesystems?  If it is possible, please tell me which file(s) I need to process to get that information.
118154
Is there a command that will show which file system (ext3, ext4, FAT32, ...) the various partitions and disks are using?   Similar to how sudo fdisk -l lists information about disks and partitions?
49694
I had Ubuntu 14.04 LTS installed on my Laptop. After a while I had some troubles starting it up. I decided to reinstall Ubuntu.  I had 3 ntfs partitions, 2 ext3 partitions the mount point for the first was / and for the second was ./local and a swap partition. During the reinstallation I chose the option: "erase Ubuntu 14.04 and reinstall".  During the reinstallation the power cut off. After it worked again I turned my laptop on to try to restart the installation process. I couldn't find any options other than:   Erase disk and install Ubuntu Something else   When I chose Something else I couldn't see my partitions. Instead I found this:  Device                         Type     Mount point     Format?     Size      Used     System     /dev/mapper/ubuntu--vg-root  /dev/mapper/ubuntu--vg-root   ext4                                 631381 MB unknown  Linux device-mapper (linear)(631.4 GB) /dev/mapper/ubuntu-vg-swap_1  /dev/mapper/ubuntu-vg-swap_1  swap                                 8493 MB   unknown /dev/sda  /dev/sda1                     ext2                                 254 MB    27 MB  /dev/sda5                                                          639877 MB unknown   At the Testdisk phase I have this: