Re: Changing/Viewing Files on Different drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jan 02, 2003 at 10:22:32AM -0500, Peter Larsen wrote:
> > How can I cd/view a given drive/directory. When I bring up a term window, I
> > can "cd foo", and i'm in the "foo" directory. However, I don't know what
> > drive I'm on, nor do I know how to change my drive location!!!
> 
> That's the point - you DON'T need to know what drive you are on.

Exactly.  Linux does not have the concept of drives, like M$ operating
systems do.  That's a good thing.

> There are ways you can find out of course. Use the "mount" command
> to see what has been mounted and where. Then look at your 'pwd' and
> see which mount-point it belongs to. I know real geeks most likely
> can use 'lsof' or 'fuser' to figure this out - I am not that
> advanced myself.

No, the easiest way to figure out what filesystem you're on is with
the df command:

  $ df .

This also helps  if you want to figure out how full that file system
is.  Make it more readable with the -h option...   =8^)

- -- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0xDFBEAD02

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+FL75HEnASN++rQIRAiPCAJ9YL+vpFYF0a1YWh56ppCrXoElqNwCgkZC0
0BLX5n9Kpl1d9jkHLbZyyNE=
=5a0E
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux