drwxrxrx
第一位-指正式的文件
c 指字符設備
b 指塊設備
Logical Disk Device Names
/dev/[ r] dsk/ c# t# d# s#
c#控制器號
t#通道號
d#驅動器號
s#分片號
Tag
/etc/path_ to_ inst記錄著啟動時每個設備的實例名
只在啟動時讀一下
prtconf
顯示系統配置
系統文件的層次及含義
/ The root of the overall file system name space
/bin The directory location for standard system commands or binary files
/dev The primary location for logical device names
/devices The primary location for physical device names
/etc Host specific system administrative configuration files and databases
/export The default directory for commonly shared file systems
/home The default directory or mount point for users home directories
/kernel The directory of platform independent loadable kernel modules
required as part of the boot process
/opt The default directory or mount point for addon application packages
/platform The directory of platform dependent loadable kernel modules
/sbin Essential executables used in the booting process and in manual system
failure recovery
/tmp Temporary files; cleared during the boot sequence
/usr The directory for programs
/var The directory for varying files
or status files
/mnt A convenient
幾種文件系統的含義及歷史
UFS
system for the Solaris operating environment
?HSFS
and provide all UFS file system features and file types
?PCFS
disks written for DOS
?UDF
media technology called DVD (Digital Versatile Disc or Digital Video Disc)
Network
?Network
the only available network
?Virtual file systems are memory
to special kernel information and facilities
?The Cache File System (CacheFS) can be used to improve performance
of remote file systems or slow devices such as CD
file system is cached
ROM is stored in a cache on the local system
?The Temporary File System (TMPFS) uses local memory for file system
reads and writes
?TMPFS use the swap space on a disk
The Process File System
?The Process File System (PROCFS) resides in memory
of active processes
?The Loopback File System (LOFS) lets you create a new virtual file
system
磁盤基本概念
Lable( VTOC)
?Volume Table of Content
?Stores the procedures used in booting the system
?The boot block is left blank if a file system not to be used for booting
?In the next
?Detailed information ablout the file system
?Size and status of file system
?Date and time of the last update
?Cylinder group size
?Number of date blocks in cylinder group
?Path name and last mount point
?In the next
Inode
?All information about a file except its name which is kept in a directory
?An inode is
讀磁盤的 VTOC 信息
# prtvtoc /dev/ rdsk/ c
PROM的概念
?Each Sun system has a boot PROM chip
on the same board as the CPU
?The main functions of the boot PROM are to test the system hardware and
boot the operating system
?The rest of the space allocated to the file system
?By default
NVRAM的概念
?The NVRAM is
pluggable chip that is often located on the main system board
?The NVRAM stores the Ethernet address
single lithium battery within the NVRAM module provides battery backup
for the NVRAM and clock
?The NVRAM module also contains the EEPROM for the parameters that
have been changed or customized from the boot PROMdefault parameters
settings
?The user
sun 機器的啟動過程
Prom
/platform/
/platform/
/platform/
/platform/
Module directories
/kernel
/usr/ kernel
/platform/
/platform/
sun 的運行級別
Level
Level S or s Singleuser state 單用戶狀態
Level
Level
Level
Level
Level
Level
看當前的運行級別
who
The /etc/inittab 記錄了啟動的級別
內容格式
id: rstate: action: process
s
| |
|___________|__ Run levels to which this entry applies
|
|______運行腳本
啟動運行腳本
所有的運行腳本在/sbin下的rc
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19456.html