HOW TO: Find Out What Partition I Am On
I’ve been reading up on the df command. The df command shows free disk space and I’ve covered it before. It has one function that I didn’t know about, however, and that’s the ability to show you which disk and partition you are on at any given time.
The command
df . (see the dot?)
will return the current device/partition. For example, if I type df. in my home direction, it returns
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 85864764 2733992 83130772 4% /home
Perhaps not so useful on your own system on which you hopefully know how it is set up, but useful when you’re mucking around on an unfamiliar system.
Related Stories
POSTED IN: How To
0 opinions for HOW TO: Find Out What Partition I Am On
No one has left a comment yet. You know what this means, right? You could be first!
Have an opinion? Leave a comment: