 |
|
Oracle Tips by Burleson |
Display your Linux File
System
Use the df command to display information about your file
systems. The -k option of the df command displays disk space
usage in kilobytes as indicated below:
# df -k
Filesystem 1K-blocks Used Available Use%
Mounted on
/dev/hdf1 18727836 2595832 15180656 15% /
/dev/hda1 101086 5945 89922 7%
/boot
none 128560 0 128560 0%
/dev/shm
Here we see that we have two file systems mounted. The first
system is connected to EIDE controller port 6 and is in the
first partition on that drive. Since it is on port 6, this indicates
that additional EIDE ports have been added beyond the four
standard ports on the motherboard.
If we would like to see the display in a more human readable
form, we can use the -h option:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdf1 18G 2.5G 15G 15% /
/dev/hda1 99M 5.9M 88M 7% /boot
none 126M 0 126M 0% /dev/shm
Now we can easily see that the first file system is 18GB in size,
with 2.5GB used, and 15GB of available free space. It is
mounted on the root (/) mount point.
The second file system is 99MB in size, with 5.9MB used and
88MB of available free space. It is mounted on the /boot
mount point.
We also see that we have a shared memory space of 126MB
defined with 126MB of that space currently available
(/dev/shm).
Now let's take a brief look at a more advanced disk
management methodology that can be used to manage large-
scale disk arrays.
The above book excerpt is from:
Easy Linux
Commands
Working Examples of Linux Command Syntax
ISBN:
0-9759135-0-6
Terry Clark
http://www.rampant-books.com/book_2005_1_linux_commands.htm |