第2章 Linux&Unix

来源:互联网 发布:java获取每个月的天数 编辑:程序博客网 时间:2024/05/29 21:30

第2章 Linux&Unix

booting      bootstrappingmonolithic kernelmicrokernel serveGUI           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 + hostterminal = 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
logoutexitlogin
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)

cal1752.9.2-1752.9.14间有11天的缺口
calendar Unix提醒服务,在当前目录查找calendar文件
uptime hostname uname
显示自己的信息whoami quota(磁盘限额KB)
显示其他用户的信息userswhow
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

0 0