Common UNIX directories

來源:互聯網
上載者:User

Directory

Purpose

/etc

System configuration files are stored here.

/bin

This directory holds binaries that must be accessible at all times and that ordinary users are likely to run.

/sbin

This directory is similar to /bin, but these binaries are likely to be used only by the system administrator.

/lib

Critical library files reside here.

/boot

This directory holds system boot files. These files may include the kernel, the boot loader, and similar files.

/usr

This directory tree holds extended system files, including its own /usr/bin, /usr/sbin, and /usr/lib directories. These files aren't necessary for basic system operation, but they may include program files for word processors, Web browsers, graphics programs, server programs, and other tools important to users.

/usr/local

This directory tree holds locally compiled programs in a directory that can be protected from package-management tools or system reinstallation.

/opt

Third-party commercial applications typically reside in this directory.

/var

System files of a transient or variable nature reside here, such as log files, mail queues, and databases.

/home or /users

Each user receives a separate subdirectory of this directory as a home directory.

/root

This directory is the root user's home directory.

/tmp

This directory is temporary "scratch space" for all users.

/mnt or /media

These directories or their subdirectories hold removable media, such as DVD-ROMs or flash disks, although some systems place removable media elsewhere.

/dev

UNIX device files reside in this directory, enabling programs to access hardware devices.

It isn't comprehensive, but it covers the most important directories that exist on most UNIX systems. Some of these directories can be separated into their own volumes. However, some—in particular, /etc, /bin, /sbin, /lib, and /dev—should never be placed on separate volumes. UNIX relies on the contents of these directories to perform critical tasks, including mounting other volumes. For instance, the mount command is likely to reside in /bin, and /dev holds the device files needed to mount a volume. (Some UNIX variants create a dynamic /dev file system, so it may be a separate file system but not a separate volume.)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.