I am handed a path of a directory or a file.
Which utility/shell script will reliably give me the UUID of the file system on which is this directory/file located?
By UUID of file system I mean the UUID=...
entry as shown by e.g. blkid
I'm using Redhat Linux.
(someone suggested that I should ask this here at unix.stackexchange.com, so I moved it from the original stackexchange.com)
blkid
. – muru Jan 23 '15 at 12:55