RHCE_培训内容(下)

-------'man文档'

---//文档分类:

man手册 info节点 GNOME文档

/usr/share/doc:存放以上三种文档之外的

---//man文档 8

[1.]用户命令 2.内核系统调用(从用户空间到内核的进入点)

3.库函数 4.特殊文件和设备

[5.]文件格式 6.游戏

7.规范标准其他页面

[8.]系统管理命令

9.Linux内核API(内核调用)[new]

---//使用方法

1.man 5 passwd / man 1 passwd //通过man查看[man手册],就是用less显示手册page

2.System -> Help -> man:passwd(5) / info:GRUB

3.man -k passwd //关键字搜索:依赖makewhatis命令生成的db

[makewhatis]:对指定的manpath or catpath 中的所有手册页,建立db

makewhatis [-u] [-v] [-w] [-s sections ] [-c [catpath]] [manpath]



-------//CUPS:common unix printing system(RHEL上的打印操作软件)

1.http://localhost:631/ //从TCP:631端口,访问提供的文档及[单独的管理接口]

------//wget命令

GNU Wget is a free utility for non-interactive download of files from the Web.
It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

1.wget http://instructor/pub/gls/errata.repo -O /etc/yum.repos.d/errata.repo
//将yum配置为指向 instructor 上的 Errata库

------//vimtutor--->vim 教程


------//getent

getent database [key ...]

'DESCRIPTION'
The getent program gathers entries from the specified administrative database using the specified search keys. Where
database is one of aliases, ethers, group, hosts, netgroup, networks, passwd, protocols, rpc, services or shadow.

1.getent hosts RHEL

2.getent passwd jacky //等价于grep jacky /etc/passwd

------//traceroute:- print the route packets trace to network host

1.traceroute -Tn www.redhat.com //-T: Use TCP SYN for probes(用TCP SYN[建立连接] 来探测)
//-n: do not map Ip to hostname when displaying them


-----'增加Swap文件大小

1.dd if=/dev/zero of=swapfile bs=1M count=100 //创建100M空文件swapfile

2.mkswap swapfile

3.swapon swapfile //激活

4.swapon -s / free / top //查看所有swap文件或分区

5.mount -a (写入fstab文件) //重启时由rc.sysinit初始化脚本激活,以后启动系统即可自动挂载

------'创建swap分区'

1.fdisk /dev/vda //创建/dev/vda6

2.mkswap /dev/vda6

3.mount -a //写在fstab中,重启后自动激活
UUID=a7feceb6-4203-40b7-ab16-979e5c502693 swap swap defaults 0 0

4.swapon /dev/vda6 //激活;swapoff /dev/vda6可以解除,记得删除fstab中记录

5.swapon -s / top / free //查看swap变大
我在IBM工作,可以为大家内部推荐IBM各种职位 IBM全球职位尽在以下链接(请在浏览器中打开,QQ/微信 会阻止): http://ibmreferrals.com/ 很乐意为感兴趣的小伙伴分享:我的面试经验^_^ 如需咨询,请邮件发送以下邮箱,有问必回 1026096425@qq.com
原文地址:https://www.cnblogs.com/jackydalong/p/2408827.html