- 论坛徽章:
- 0
|
做了这么多年unix相关的东西,竟然没搞明白下面这些东西,至少与以前的理解是不一样的:
/sbin The single-user bin directory contains essential commands used in the booting process. These commands are available when /usr/bin is not mounted. It contains many system administration commands and utilities.
/usr The mount point for the /usr file system. The name "usr" is an acronym for Unix System Resources.
In-Memory System Directories(在Solaris上)
/dev/fdA directory containing special files relating to current file descriptors in use by the system./devicesThe primary directory for physical device names./etc/mnttabA memory-based file, in its own file system, which contains details of currently mounted file systems./etc/svc/volatileA directory that contains log files and reference files relating to the current state of system services./procThis directory stores current process-related information. Every process has its own subdirectory in /proc./system/contractA
file system used for creating, controlling, and observing contracts,
which are relationships between processes and system resources. These
process contracts are used by the Service Management Facility (SMF) to
track the processes that compose a service. /system/objectThis directory, used primarily for DTrace activity, describes the state of all modules currently loaded by the kernel./tmpA memory-resident directory for temporary files. Be careful storing files in /tmp; this directory is cleared during the boot sequence./var/runThis directory contains lock files, special files, and reference files for a variety of system processes and services.
A hard link cannot span file systems; it can only point to another file located within its file system.
An advantage of a symbolic link over a hard link is that you can create
a symbolic link to a file that does not yet exist. You cannot create a
hard link unless the source file already exists.
Another advantage of symbolic links over hard links is that a symbolic
link can link directories or files, whereas a hard link can link only
files.
Never run the fsck
command on a mounted file system. This could leave the file system in
an unstable state and could result in the loss of data. Because the / (root), /usr, and /var file systems cannot be unmounted, these file systems should only have fsck run on them while in single-user mode.
Reboot the system immediately after running the fsck on these mounted file systems.
目录lost+found的作用:文件系统发生损坏,需要用fsck(1M)进行检查时,fsck会把损坏的文件放到这个目录中。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/24393/showart_233616.html |
|