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

"jdow" <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>
I have a separate /usr partition. So I get:
[YYYY@XX ~]$ which Mail
/usr/bin/Mail
[YYYY@XX ~]$ df /usr/bin
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda9              5044156   2351092   2436832  50% /usr
[YYYY@XX ~]$
[jdow@XX ~]$ df /usr/bin/Mail
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda5              5044156    251716   4536208   6% /
[YYYY@XX ~]$

Note the significant difference here. (Although that is a 7.2 machine. On
other releases it MAY be different. But I believe this is behavior I have
seen on every version I've tried.)

{^_^}
----- Original Message ----- 
From: "Oisin C. Feeley" <[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
>
>
>
> _______________________________________________
> enigma-list mailing list
> [email protected]
> https://listman.redhat.com/mailman/listinfo/enigma-list
>
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.