这里之讲一下基于intel的计算机启动过程
1:上电,FFFF0H,JMP命令
2:进入ROM-BIOS程序
3:POST (power-on self test)
4:进入主引导分区,包括 主引导记录MBR和DPT硬盘分区表
5:交由GRUB或者LILO处理
6:linux内核解压缩
7:第一个用户级进程init启动,读取 etc/inittab文件,设置getty
8:login画面
磁盘管理:
linux把几乎任何事物都看作一个文件,文件夹,硬件,网络上连接的一个计算机
文件系统有一个根目录“/",任何mnt的文件系统都要在它下面。
重要的有以下几个
/bin the binary command dir
/etc the settings of the OS
/sbin the system binary files dir
/home the dir for common users
/root the root's dir
/mnt for mount
/proc a virtual dir for processes
/usr very important dir for users
/boot the dir for booting
/dev the dir for hard devices
/lib the library dir
/tmp
/var
ls -l或者 file命令可以查看文件类型
- 普通文件 d 文件夹 p 管道文件,在两个进程间通信 s socket文件,对网卡发送接收文件
c char设备 b block设备 l link file
文件和文件夹操作命令;
cp or mv /or /* /or/*
(command source desti )
mkdir rmdir cd
cat > temp
.......ctrl+D
vi temp
rm -i *
cat
more: q <enter> <space> f b /search
head/tail -n file
chown
ln (-s)