2008-04-02

Linux File System

# grub
/boot/grub/menu.lst

# programs or applications
/bin
/sbin
/usr/sbin
/usr/bin
/usr/local/bin

# configuration files
/etc
/etc/passwd # the user info database
/etc/group # the group information
/etc/inittab # the configuration for init
/etc/motd # the logon message

# device
/dev # device files
/dev/hd0 # the main hard drive
/dev/fd0 # the floppy drive
/mnt # mounted storage devices
/boot # the bootstrap loader for LILO or GRUB

# documentation and manual
/usr/share/man
/usr/share/info
/usr/share/doc

# "ls" color settings file
/etc/DIR_COLORS

# bit bucket
/dev/null

# partitions mounted
/etc/fstab

# host name
/etc/sysconfig/network
/etc/hostname

# hostname <-> IP address
/etc/hosts

# password settings
/etc/login.defs
PASS_MIN_LEN

# root related
/etc/alias

# dns
/etc/resolv.conf

# ip adress
/etc/sysconfig/network-scripts/ifcfg-eth0

# gateway
/etc/sysconfig/network-scripts/ifcfg-eth0

# ssh
~/.ssh/knowhosts

# dir under /
/bin 重要的二进制 (binary) 应用程序
/boot 启动 (boot) 配置文件
/dev 设备 (device) 文件
/etc 配置文件、启动脚本等 (etc)
/home 本地用户主 (home) 目录
/lib 系统库 (libraries) 文件
/lost+found 在根 (/) 目录下提供一个遗失+查找(lost+found) 系统
/media 挂载可移动介质 (media),诸如 CD、数码相机等
/mnt 挂载 (mounted) 文件系统
/opt 提供一个供可选的 (optional) 应用程序安装目录
/proc 特殊的动态目录,用以维护系统信息和状态,包括当前运行中进程 (processes) 信息。
/root root (root) 用户主文件夹,读作“slash-root”
/sbin 重要的系统二进制 (system binaries) 文件
/sys 系统 (system) 文件
/tmp 临时(temporary)文件
/usr 包含绝大部分所有用户(users)都能访问的应用程序和文件
/var 经常变化的(variable)文件,诸如日志或数据库等

No comments: