More file system layout
For convenience, the
Linux file system is usually thought of in a tree structure. On a standard
Linux system you will find the layout generally follows the scheme presented
below.
This is a layout from
a RedHat system. Depending on the system admin, the operating system and the
mission of the UNIX machine, the structure may vary, and directories may be
left out or added at will. The names are not even required; they are only a
convention.
The tree of the file
system starts at the trunk or slash, indicated by a forward slash (/).
This directory, containing all underlying directories and files, is also called
the root directoryor "the root" of the file system.
Directories that are
only one level below the root directory are often preceded by a slash, to
indicate their position and prevent confusion with other directories that could
have the same name. When starting with a new system, it is always a good idea
to take a look in the root directory. Let's see what you could run into:
emmy:~>cd /
emmy:/>ls
bin/ dev/
home/ lib/ misc/ opt/
root/ tmp/ var/
boot/ etc/
initrd/ lost+found/ mnt/
proc/ sbin/ usr/
|
No comments:
Post a Comment