I want to get only the total size of a mounted filesystem. But the catch is that I only know about the mount point. So, I thought of using the
To get the size of this mounted filesystem, I ran the following command:
df --output=target,size | grep -w /mnt/xyz
The result that I got was something like this:
I know how to use
cut but it was of no use here as the space between the string and the integers is unknown to me. Is there a way to just print this size on the terminal?