Editing Directory Structure
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 14: | Line 14: | ||
At the first step we have to copy the Directory Structure from [https://www.freebsd.org/doc/handbook/dirstructure.html FreeBSD Handbook chapter: 3.5. Directory Structure] in the following table. | At the first step we have to copy the Directory Structure from [https://www.freebsd.org/doc/handbook/dirstructure.html FreeBSD Handbook chapter: 3.5. Directory Structure] in the following table. | ||
− | We use [https://www.freebsd.org/cgi/man.cgi?query=hier&sektion=7&manpath=freebsd-release-ports hier(7)] | + | We use also [https://www.freebsd.org/cgi/man.cgi?query=hier&sektion=7&manpath=freebsd-release-ports hier(7)]. From here we will get deeper. |
− | + | ||
{|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px" | {|class="wikitable" style="width:96.5%;background:#FFFFFF; border:2px solid #008000;text-align:left;padding: 10px" | ||
Line 25: | Line 24: | ||
|Root directory of the file system. | |Root directory of the file system. | ||
|- | |- | ||
− | | | + | |/bin/ |
− | |User utilities fundamental to both single-user and multi-user environments | + | |User utilities fundamental to both single-user and multi-user environments. |
|- | |- | ||
|[[/boot/]] | |[[/boot/]] | ||
|Programs and configuration files used during operating system bootstrap. | |Programs and configuration files used during operating system bootstrap. | ||
+ | |- | ||
+ | |/boot/defaults/ | ||
+ | |Default boot configuration files. Refer to [https://www.freebsd.org/cgi/man.cgi?query=loader.conf&sektion=5&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports loader.conf(5)] for details. | ||
|- | |- | ||
|/cdrom/ | |/cdrom/ | ||
Line 37: | Line 39: | ||
|normally a link to <code>/usr/compat</code>. If not, then the <code>/usr/compat</code> comments apply | |normally a link to <code>/usr/compat</code>. If not, then the <code>/usr/compat</code> comments apply | ||
|- | |- | ||
− | |/dev/ | + | |[[/dev/]] |
− | |Device nodes. Refer to | + | |Device nodes. Refer to <code>intro(4)</code> for details. Device special files managed by [https://www.freebsd.org/cgi/man.cgi?query=devfs&sektion=5&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports devfs(5)] |
|- | |- | ||
|[[/etc/]] | |[[/etc/]] | ||
|System configuration files and scripts. | |System configuration files and scripts. | ||
|- | |- | ||
− | |/ | + | |/etc/defaults/ |
− | | | + | |Default system configuration files. Refer to [https://www.freebsd.org/cgi/man.cgi?query=rc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports rc(8)] for details. |
|- | |- | ||
− | |/ | + | |/etc/mail/ |
− | | | + | |Configuration files for mail transport agents such as <code>sendmail(8)</code>. |
+ | |- | ||
+ | |/etc/periodic/ | ||
+ | |Scripts that run daily, weekly, and monthly, via [https://www.freebsd.org/cgi/man.cgi?query=cron&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports cron(8)]. Refer to [https://www.freebsd.org/cgi/man.cgi?query=periodic&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports periodic(8)] for details. | ||
+ | |- | ||
+ | |/etc/ppp/ | ||
+ | |[https://www.freebsd.org/cgi/man.cgi?query=ppp&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports ppp(8)] configuration files. | ||
|- | |- | ||
|/lib/ | |/lib/ | ||
|critical system libraries needed for binaries in <code>/bin</code> and <code>/sbin</code> | |critical system libraries needed for binaries in <code>/bin</code> and <code>/sbin</code> | ||
− | |||
− | |||
− | |||
|- | |- | ||
|/libexec/ | |/libexec/ | ||
|critical system utilities needed for binaries in /bin and <code>/sbin</code> | |critical system utilities needed for binaries in /bin and <code>/sbin</code> | ||
− | |||
− | |||
− | |||
|- | |- | ||
|/media/ | |/media/ | ||
Line 72: | Line 74: | ||
|- | |- | ||
|/proc/ | |/proc/ | ||
− | |Process file system. Refer to [https://www.freebsd.org/cgi/man.cgi?query=procfs&sektion=5&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports procfs(5)], | + | |Process file system. Refer to [https://www.freebsd.org/cgi/man.cgi?query=procfs&sektion=5&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports procfs(5)], <code>mount_procfs(8)</code> for details. |
|- | |- | ||
|/rescue/ | |/rescue/ | ||
− | |Statically linked programs for emergency recovery as described in | + | |Statically linked programs for emergency recovery as described in rescue(8). |
|- | |- | ||
|/root/ | |/root/ | ||
|Home directory for the root account. | |Home directory for the root account. | ||
|- | |- | ||
− | | | + | |/sbin/ |
|System programs and administration utilities fundamental to both single-user and multi-user environments. | |System programs and administration utilities fundamental to both single-user and multi-user environments. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|/tmp/ | |/tmp/ | ||
− | |Temporary files which are usually not preserved across a system reboot. A memory-based file system is often mounted at <code>/tmp</code>. This can be automated using the tmpmfs-related variables of | + | |Temporary files which are usually not preserved across a system reboot. A memory-based file system is often mounted at <code>/tmp</code>. This can be automated using the tmpmfs-related variables of <code>rc.conf(5)</code> or with an entry in <code>/etc/fstab</code>; refer to <code>mdmfs(8)</code> for details. |
|- | |- | ||
|[[/usr/]] | |[[/usr/]] | ||
|The majority of user utilities and applications. | |The majority of user utilities and applications. | ||
|- | |- | ||
− | | | + | |/usr/bin/ |
− | | | + | |Common utilities, programming tools, and applications. |
|- | |- | ||
− | |/ | + | |/usr/include/ |
− | | | + | |Standard C include files. |
|- | |- | ||
− | | | + | |/usr/lib/ |
− | + | |Archive libraries. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
− | + | |/usr/libdata/ | |
− | + | |Miscellaneous utility data files. | |
|- | |- | ||
− | | | + | |/usr/libexec/ |
+ | |System daemons and system utilities executed by other programs. | ||
|- | |- | ||
− | | | + | |/usr/local/ |
+ | |Local executables and libraries. Also used as the default destination for the FreeBSD ports framework. Within <code>/usr/local</code>, the general layout sketched out by [https://www.freebsd.org/cgi/man.cgi?query=hier&sektion=7&manpath=freebsd-release-ports hier(7)] for <code>/usr</code> should be used. Exceptions are the man directory, which is directly under <code>/usr/local</code> rather than under <code>/usr/local/share</code>, and the ports documentation is in share/doc/port. | ||
|- | |- | ||
− | | | + | |/usr/obj/ |
+ | |Architecture-specific target tree produced by building the <code>/usr/src</code> tree. | ||
|- | |- | ||
− | | | + | |/usr/ports/ |
− | + | |The FreeBSD Ports Collection (optional). | |
|- | |- | ||
− | | | + | |/usr/sbin/ |
− | + | |System daemons and system utilities executed by users. | |
|- | |- | ||
− | | | + | |/usr/share/ |
+ | |Architecture-independent files. | ||
|- | |- | ||
− | | | + | |/usr/src/ |
− | + | |BSD and/or local source files. | |
+ | |- | ||
+ | |[[/var/]] | ||
+ | |Multi-purpose log, temporary, transient, and spool files. A memory-based file system is sometimes mounted at <code>/var</code>. This can be automated using the varmfs-related variables in <code>rc.conf(5)</code> or with an entry in <code>/etc/fstab</code>; refer to <code>mdmfs(8)</code> for details. | ||
+ | |- | ||
+ | |/var/log/ | ||
+ | |Miscellaneous system log files. | ||
|- | |- | ||
− | | | + | |/var/mail/ |
+ | |User mailbox files. | ||
|- | |- | ||
− | | | + | |/var/spool/ |
+ | |Miscellaneous printer and mail system spooling directories. | ||
|- | |- | ||
− | | | + | |/var/tmp/ |
+ | |Temporary files which are usually preserved across a system reboot, unless <code>/var</code> is a memory-based file system. | ||
|- | |- | ||
− | | | + | |/var/yp/ |
+ | |NIS maps. | ||
|} | |} | ||
− | [[Category: | + | [[Category:Sysutils]] |