Linux 的 启动 磁盘管理 文件操作

这里之讲一下基于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)

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值