1.Shell命令行
光標移到行首:Ctrl+a
光標移到行尾:Ctrl+e
刪除所有內(nèi)容:Ctrl+u
2.Vim命令模式
光標移到行首:0或者Shift+^
光標移到行尾:Shift+$
光標移到首行:gg
光標移到尾行:Shift+g
撤銷當前操作:u
3.查看Linux版本信息
lsb_release -a
cat /etc/redhat-release
cat /etc/issue
cat /proc/cpuinfo
cat /proc/version
uname -a
uname -r
lsb_release -a command not found 解決方法
[root@localhost ~]# lsb_release -a
-bash: lsb_release: command not found
解決方法:
yum install -y redhat-lsb
4.查看內(nèi)存
free -m
free -h
cat /proc/meminfo
5.Linux終端常用快捷鍵
新建終端:Ctrl + Shift +T
放大終端:Ctrl + Shift + +
縮小終端:Ctrl + -
終端全屏:F11
VMware全屏:Ctrl + Alt + Enter