Re: How to locate which hard drive having certain program?

"Oisin C. Feeley" <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>

On Wed, 12 Mar 2003, jdow wrote:

>From: "Oisin C. Feeley" <[email protected]>
<snip>
>> >[YYYY@XX ~]$ which Mail
>> >/usr/bin/Mail
>> >[YYYY@XX ~]$ df /usr/bin
>                            ^^^^ Note I stripped off the file name and used
>                                 only the path.
>

OK.  But I'm afraid I don't understand your point.  I get the same 
results whether I use the actual filename as an argument or the 
directory that contains the filename.  I thought that's what you were 
pointing out.  The info for "file" says that 

 "[...] `df' reports on the filesystem containing each argument FILE."

and indeed:

[ofeeley@ars ofeeley]$ df /usr/bin/Mail
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             14120684   9013132   4390252  68% /
[ofeeley@ars ofeeley]$ df /usr/bin
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             14120684   9013132   4390252  68% /


<snip>
>> Much better!  For some reason I had only ever used "df" on directories
>> (when of course everything is a file in *NIX).  Very handy.
>

Oisin Feeley
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.