Linux学习笔记:基本概念、常用命令
时间:2010-10-06 来源:weichsel
基本概念
Console - 监视器、键盘。
Virtual Console – 允许在一个物理Console上进行多个log session。
Man 命令 - 包含技术的细节,要求使用者对命令或资源有一定的了解。Shell内部命令不在man的范围内。
系统目录
/bin – 基本系统命令。
/dev - 设备文件,访问系统设备和资源。
常用设备对应的文件名
fd – floppy disk
console – monitor
tty – serial port
hda – whole first hard disk
hda1 – first partition
sda – SCSI device
lp – printer
/usr - 包含可选的命令
/bin - most of the executable, not essential to the system.
/etc
/include
/lib
/man
/local
File Link
作用:给一个文件多个名称。
在系统中,通过inode number标识文件。
文件名是到inode的link。
目录是文件,包含link-to-inode关联信息的列表。
Hard link - 直接链接到文件的inode。必须和目标文件在同一个文件系统内。Link和目标文件由相同的inode number。
Symbolic link - 没有链接到inode;Permission由目标文件决定;可以链接到不存在的文件;