分类: LINUX
2008-06-15 16:38:26
As
the name suggests, this is the place where Linux keeps information that
it needs when booting up. For example, this is where the Linux kernel
is kept. If you list the contents of /boot
, you'll see a file called vmlinuz
- that's the kernel.
/boot/grub/menu.list stores configuration of grub startup option.
This is where you'll find your global setting.
/etc/mtab: configuration file of mount.
/etc/fstab:
This file contains descriptive information about the various file
systems and their mount points, like floppies, cdroms, and so on.
/etc/passwd:
A file that contains various pieces of information for each user account. This is where the users are defined.
The
devices that are available to a Linux system. Remember that in Linux,
devices are treated like files and you can read and write devices like
they were files. For example, /dev/fd0
is your first floppy drive, /dev/cdrom
is your CD drive, /dev/hda
is the first IDE hard drive, and so on. All the devices that a Linux kernel can understand are located under /dev
, and that's why it contains hundreds of entries.
This directory is used for mount points. The different physical storage devices (like the hard disk drives, floppies, CD-ROM's) must be attached to some directory in the file system tree before they can be accessed. This attaching is called mounting, and the directory where the device is attached is called the mount point.
The/mnt
directory contains mount points for different devices, like /mnt/floppy
for the floppy drive, /mnt/cdrom
for the CD-ROM, and so on. However, you're not forced to use the /mnt
directory for this purpose, you can use whatever directory you wish.
Actually in some distros, like Debian and SuSE, the default is to use /floppy
and /cdrom
as mount points instead of directories under /mnt
.