Quote:
Originally Posted by Chanakya.m
Hi Dudes,
How can we get the details of file system on which a perticular file is located? Is there any way to get the file system (DISK) of a perticular file directly or indirectly?
Thanks in advance
Reg,
Chanakya
Well, if it's a command within your $PATH, you can use 'which.'
which bash #Will tell you the path of bash. Try it on ls, find, etc.
Otherwise, use find to locate the file.
Then, you can use /etc/mtab or /etc/fstab to determine the filesystem in use on that partition.
If that doesn't answer your question, please state what you're looking for in a little more detail.
Shawn