RH033 Red Hat Enterprise Linux Essentials - Personal Note
查看当前的Virtual Console# tty图形界面控制台Ctrl-Alt-F7使用的协议X protocolssh protocol输入密码Alt+小键盘上数字输入acsii代码passwd -S user1功能上等同于passwd --status user1datedate +%Tdate +%D%T (中间不能有空格)calcal 2006显示指令简单的说明whatis/usr/share/doc/额外的帮助文件ls -l /usr/share/man按q退出man pageman [chapter] <command>重要章节1,5,81- 用户命令2- 系统调用3- 库调用4- 特殊文件5- 文件格式6- 游戏7- 其他8- 管理命令n/N 察看下一个或前一个符合项man -k passwd列出所有含有passwd的man 页面
Administration Tasks in Linux
修改Lilo配置/etc/lilo.conf/sbin/liloLilo模式选项boot: linux singleboot: linux emergencyboot: linux rescure日志文件/var/log/message/var/log/dmesgdmesg option-n level-c修改运行模式init runlevel/etc/inittab文件/etc/rc.d单用户模式 1用于系统维护[@more@]关机命令shutdown –r +15 “shutdown”当出现system is halt时-c;-f;-t;-h;-r;-F;-khaltrebootinit 0init 6显示当前使用的系统的用户whow修复文件系统efsck制作安全引导盘mkbootdisk kernelversion查看内核版本uname –r创建设备挂载点mknodfor example:mknod /dev/hdafd
Managing the Filesystem in Linux
文件类型:二进制文件 -目录 d符号链接 l设备文件(块和字符) ab , acthe Filesystem Standard (FSSTND) the Filesystem Hierarchy Standard (FHS) usr目录的主要架构/usr/bin/usr/etc/usr/include/usr/lib/usr/man/usr/src/usr/local 本地安装的包/usr/X11R6/usr/X386/usr/dict/usr/sbin/usr/share/usr/doc/usr/etc/skel [@more@]/usr系统范围内的应用程序/etc系统配置文件/var可变数据文件,像是随着时间改变的可变数据文件,例如,目录池和文件,管理和日志文件,短暂的临时文件。/tmp包含由用户程序创建的临时文件。/opt包含Li
Using the Shell in Linux
*显示当前shell#echo $SHELL*永久性修改用户的shell#chsh –s shell username例如:# chsh –s /bin/bash Justin-l参数则列出所有的/etc/shells中的shell*临时修改shell#/bin/bash*返回上级Shell#exit[@more@]*历史记录#history -option filename默认历史记录保存在~/.bash_history需要注意, ~/.bash_history 记录的是前一次登入以前所执行过的指令,而至于這一次登入所执行的指令都被暂存在缓存中,当您成功的登出系统后,该指令记忆才会记录到 .bash_history 当中。主要参数-c, 清除所有在缓存中的命令历史纪录,但是不会删除.bash_hist