Chris Henry wrote:
On Tue, Apr 22, 2008 at 9:23 PM, Kelvin Quee <[EMAIL PROTECTED]> wrote:
 I've a directory called "tmp". How do I know which device (/dev/sda?) it's
mounted on? Is there a command that I can use?
`df` will list all mounted partitions. If it is not listed, then find
the parent directory closest to tmp (if you're talking about /tmp,
then either you'll see /tmp mounted to some partition, such as
/dev/hda6, or, otherwise, it is part of the root partition).
You can find out for sure by
        # cd /tmp; df -k .
which will show the df output for the partition your cwd is on,
hence the 'cd /tmp'

cheers


_______________________________________________
Slugnet mailing list
[email protected]
http://wiki.lugs.org.sg/LugsMailingListFaq
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to