Can someone remind me of the command that shows you the disk space taken up by
a directory, and how much space you've left on a partition (not quota)? I
think I found it a while ago while browsing the man pages, but can't remember
now :-(
And would that command show space across partitions? eg, if 2 sub-directories
are on 2 diff. partitions, does it show the total space across both partitions
if you run the following?
<command> / <- root dir
Also, how does one check which partiton a mount point is mounted on? eg I have
my /usr & /home on 2 different partitions (set up during installation), but
how do I check which is on which?
FYI, I'm using Debian 2.2r2.
thanks heaps, have a good one
Robin
'du' (Disk Usage) shows how much space a directory uses. Normally it
does cross partitions, but the GNU version that Linux distributions use
has an option to restrict itself to one partition.
'df' (Disk Free) shows how much space is left on partitons. It will also
tell you which partition a file is on. Just run:
df /path/to/file
and it will tell you the stats for the partition the file is on.
The file /etc/fstab also has all the information on what directories use
which partitions.
--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://www.tuxedo.org/~esr/faqs/smart-questions.html
> Can someone remind me of the command that shows you the disk space taken up by
> a directory, and how much space you've left on a partition (not quota)? I
taken up by a directory: "du /dir" (i'm using "du -cah /dir"
("man du")
space left on partitions: "df /mount-point" (man df)
> And would that command show space across partitions? eg, if 2 sub-directories
> are on 2 diff. partitions, does it show the total space across both partitions
> if you run the following?
>
> <command> / <- root dir
take the "df" command without partition-paramters, e.g. "df -h" (the
"-h" is for "human-readable") will show you all partitions currently
mounted.
> Also, how does one check which partiton a mount point is mounted on? eg I have
> my /usr & /home on 2 different partitions (set up during installation), but
> how do I check which is on which?
again: df
> FYI, I'm using Debian 2.2r2.
FYI, Debian 2.2r6 is coming soon :-)
peace,
Christian.
--
########### Christian ###############
######## evil...@gmx.net ######
#####################################