Marcus,
Lets say that your full path name for the file is
'usr/local/bin/xyz'. Do a 'df'. This will show you all the filesystems
that exist on your system. The filesystem with the closest match contains
your file.
For example, if you have two filesystems '/usr' and '/usr/local',
then the /usr/local filesystem contains your file. The 'df' command shows
you which partition the filesystem in on, and that is your answer.
Kenneth
There is no such thing as luck. 'Luck' is nothing but an absence of bad luck.
On Fri, 20 Nov 1998, James (Jim) Hatridge wrote:
>
> HI All!
>
> I have my Linux files on two HDs, ie hda2 and hdb1. Root (/) is on hdb1
> and /var is on hda2. My question is how do I tell which disk a file (or
> dir) is on? For example I had thought that /tmp was on hda2, but I found
> out last night that it was on hdb1.
>
> TIA!
>
> J
> I
> M
> -----------------------------------------
> Jim Hatridge
> Germany
> [EMAIL PROTECTED]
>
> Proud Linux User #88484 !!!!!!!!!!
>
> Micro$oft -- Ghostdriver* on the road to the future!
> (*German Slang for the guy driving on the wrong side of the road!)
> ----------------------------------------------
> "If a President of the United States ever lied to the
> American people he should resign."
> Bill Clinton, 1974
>
>
>