(1)分区硬盘
fdisk /dev/sdb
n->创建分区,逻辑分区和主分区
主分区范围1-4
逻辑分区5,6....
(2)格式化文件分区
mkfs.type 分区
(3)将分区挂载目录
mount 分区 目录
被挂载的目录原始内容不可访问
(4)文件权限
umask 0022
默认权限666与umask取反作为文件权限
文件特殊权限s,比如passwd 具有用户s权限,普通用户执行该文件时具备root用户权限,方可操作shadow文件
(5)系统ati文件操作,不带缓冲
creat,open,write,read,close,lseek <fcntl.h>
符号,常量 <sys/stat.h>
(6)other
chmod,access,fstat,mkdir,rmdir,getcwd
(7)标准IO,带缓冲