第2章 Linux&Unix
booting bootstrapping
monolithic kernel
microkernel serve
GUI graphical user interface
非盈利版权 Copyleft
GPL | general public license |
---|---|
发行版 | distribution (distro) |
CSRG | Computer Science Research Group |
Macintosh = Mach kernel + FreeBSD +Aqua(GUI)
引导加载程序:
- GRUB (Grand Unified Bootloader)
- LILO
第3章 Unix连接
computer = terminal + host
terminal = Input device + Output device
Multics
GE-645
$75/一次
多任务处理系统 | multitasking |
---|---|
多用户系统/分时系统 | time-sharesystem |
电传打字机 Teletype
Teletype ASR33
终端服务器 terminal server
充当交换机
控制台 console
仿真终端 emulate terminal
无头系统 headless system
服务器 路由器
SSH secure shell
滞后 lag
字符终端 character terminal
图形终端 graphics terminal
VT100
X Window
——X终端 ssh ssh –X
第4章 开始使用Unix
- 改变口令
userid
prompt
newline
logout
、
exit
、
login
lowercase、uppercase
passwd
last [-usrid]
检查他人是否使用过您的账户
第5章 GUI:图形用户界面
X Window
1984
抽象层次 layer of abstraction
窗口管理器 window manager
第6章 Unix工作环境
运行级别
运行级别 | 描述 |
---|---|
0 | 停机 |
1 | 单用户 |
2 | CLI |
3 | 非标准化 |
4 | 多用户CLI |
5 | 非标准化 |
6 | GUI |
7 | 重启 |
第7章 Unix键盘的使用
tty
显示终端名称
stty
显示或设置终端
getty
打开一个与终端的通信,并启动登录过程
Termcap、Terminfo、curses
ncurses
屏幕管理
infocmp
命令 infocmp vt100
终端的类型VT100/xterm/VT200/3720(IBM)
修饰键 | 键 |
---|---|
erase | ^H |
kill | ^U |
werase | ^W |
rprnt | ^R |
flush | ^O |
lnext | ^V |
susp | ^Z/^Y |
intr | ^C |
quit | ^\ |
stop | ^S/^Q |
eof | ^D |
<Backspace>
和<Delete>
<Ctrl>+H
发送BS
(退格命令)然后按下<Rubout>
发送DEL命令穿孔
erase ——> ^H/<Backspace>
DEL ——> <Delete>/^?
Bash封闭eof信号:IGNOREEOF=1
CR
(托架返回)—-^M
返回
LF
(换行)—–^J
换行
新行字符^J
<Ctrl+J>stty sane<Ctrl+J>
<Ctrl+J>reset<Ctrl+J>
第8章 能够立即使用的程序
在系统中查找 which、type、whence(Korn shell)
cal
在1752.9.2-1752.9.14
间有11天的缺口
calendar
Unix提醒服务,在当前目录查找calendar文件
uptime
hostname
uname
显示自己的信息whoami
quota
(磁盘限额KB)
显示其他用户的信息users
、who
、w
IDE JCPU PCPU
终端临时上锁:lock
请求Unix提醒何时离开:leave
内置计算器:bc
bc –l
启动
计算 ^
指数 sqrt(X)
平方根 s(x)
正弦 a(x)
反正切 ln(x)
scale factor:scale=6
使用变量
进制转换
输入的基ibase
输出的基obase
逆波兰表示法dc(desk calculator)
基于栈的计算器:dc
第9章 文档资料:Unix手册与Info
RTFM FAQ(frequentlyasked question list)
常见问题解答
web搜索的方式"man command"
xman
^S
进行搜索
**(1)命令
(2)系统调用
(3)库函数特殊文件
(4)文件格式
(5)游戏
(6)杂项信息
(7)系统管理
(3c)标准的C函数(3f)Fortran函数(3m)数学函数 (3s)标准I/O函数 (3x)特殊函数**
在man命令中指定节号 man 2 kill
/man 1c intro
whatis = man –f (file)
apropos=man –k (keyword)
列出所有内置命令的特殊说明书页manbuiltins