左右键 一个字符一个字符移动一个字一个字移动
ctrl+ a 光标移动到行首
ctrl+ e 光标移动到行尾
ctrl+ u 光标所在位置删除到行首
ctrl+ r+关键字 调出最近一条含有关键字的命令
ctrl+ 左|右 光标移动以单词为单位
ctrl+ c 撤销以输入的命令
ctrl+ d 关闭当前环境
ctrl+ shift + t 在现有shell中重新打开一个table
ctrl+ shift + pageup|pagedown 切换table
ctrl+ alt + l 锁屏
ctrl+ alt +上|下 切换工作界面
ctrl+ alt + f1|f7 进入图形界面
ctrl+ alt + f2-f6 进入虚拟控制台
watch -n 1 date 让date命令每秒执行一次,ctrl +c 推出监控模式
date 11181115 把系统时间设定为11月18日11:15 格式:月月天天小时分钟
date 111811152016.55 2016表示年(可以不加).55 表示秒(可以不加)
-d +xday -xday 查看x天前或者后的时间
+%.... 设定date的输出格式
②.passwd
1.passwd 修改用户密码
[root@foundation0 ~]# passwd 改变超级用户密码
Changing password for user root.
New password:
BAD PASSWORD: The password is shorter than 8 characters 密码不得少于8位
Retype new password:
passwd: all authentication tokens updated successfully.
[kiosk@foundation0 Desktop]$ passwd
Changing password for user kiosk.
Changing password for kiosk.
(current) UNIX password:
New password:
BAD PASSWORD: The password is the same as the old one
New password:
BAD PASSWORD: The password fails the dictionary check - it is too simplistic/systematic 密码必须是无序数字+字母
New password:
BAD PASSWORD: The password is shorter than 8 characters 密码必须>8位
2.passwd其他参数