unix操作系统体系结构

内核接口为系统调用,公用函数库构建在系统调用接口上,应用程序既可以使用系统调用和公用函数库

shell为运行其他程序提供接口

登录

登录名 /etc/passwd

unix常见shell
输入和输出

标准输入输出错误 ls > file.list

不带缓冲的I/O open read write lseek close

标准I/O printf

程序与进程

geipid()获得进程的ID

出错处理

strerror perror