文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Linux Filesystems and Directories

Linux Filesystems and Directories

时间:2007-06-02  来源:mdiane

Several major directories are associated with all modern Unix/Linux operating systems. These directories organize user files, drivers, kernels, logs, programs, utilities, and more into different categories. The standardization of the FHS makes it easier for users of other Unix-based operating systems to understand the basics of Linux.

Every FHS starts with the root directory, also known by its symbol, the single forward slash (/). All of the other directories shown in Table 1-1 are subdirectories of the root directory. Unless they are mounted separately, you can also find their files on the same partition as the root directory.

Table 1-1: Basic Filesystem Hierarchy Standard Directories

Directory

Description

/

The root directory, the top-level directory in the FHS. All other directories are subdirectories of root, which is always mounted on some partition.

/bin

Essential command line utilities. Should not be mounted separately; otherwise, it could be difficult to get to these utilities when using a rescue disk.

/boot

Includes Linux startup files, including the Linux kernel. The default, 100MB, is usually sufficient for a typical modular kernel and additional kernels that you might install during the RHCE or RHCT exams.

/dev

Hardware and software device drivers for everything from floppy drives to terminals. Do not mount this directory on a separate partition.

/etc

Most basic configuration files.

/home

Home directories for almost every user.

/lib

Program libraries for the kernel and various command line utilities. Do not mount this directory on a separate partition.

/mnt

The mount point for removable media, including floppy drives, CD-ROMs, and Zip disks.

/opt

Applications such as the WordPerfect or OpenOffice.org Office suites.

/proc

Currently running kernel-related processes, including device assignments such as IRQ ports, I/O addresses, and DMA channels.

/root

The home directory of the root user.

/sbin

System administration commands. Don't mount this directory separately.

/tmp

Temporary files. By default, Red Hat Enterprise Linux deletes all files in this directory periodically.

/usr

Small programs accessible to all users. Includes many system administration commands and utilities.

/var

Variable data, including log files and printer spools.

Mounted directories are often known as volumes, which can span multiple partitions. However, while the root directory (/) is the top-level directory in the FHS, the root user's home directory (/root) is just a subdirectory.

On The Job 

In Linux, the word 'filesystem' has several different meanings. For example, a filesystem can refer to the FHS, an individual partition, or a format such as ext3. A filesystem device node such as /dev/sda1 represents the partition on which you can mount a directory.

相关阅读 更多 +
排行榜 更多 +
火柴人联盟2腾讯qq登录版

火柴人联盟2腾讯qq登录版

体育竞技 下载
tsuki odyssey游戏(月兔冒险奥德赛)

tsuki odyssey游戏(月兔冒险奥德赛)

休闲益智 下载
超级飞侠大冒险

超级飞侠大冒险

休闲益智 下载