From the command line (bash) I would like to know what disk a given file is stored in. E.G.:
$ [what filesystem is this file in command] /tmp/example/file
/dev/sda1
From the command line (bash) I would like to know what disk a given file is stored in. E.G.:
$ [what filesystem is this file in command] /tmp/example/file
/dev/sda1
You can get the answer by using df
command on the directory containing the executable. For example, on you example, you could say
df /tmp/example
df
(GNU coreutils 8.13) does not have that option: df: unrecognized option '--output=source'
.
– terdon
Jun 11 '13 at 02:08