1.Shell命令行linux
光標移到行首:Ctrl+a 光標移到行尾:Ctrl+e 刪除全部內容:Ctrl+u
2.Vim命令模式bash
光標移到行首:0或者Shift+^ 光標移到行尾:Shift+$ 光標移到首行:gg 光標移到尾行:Shift+g 撤銷當前操做:u
3.查看Linux版本信息ui
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.查看內存內存
free -m free -h cat /proc/meminfo
5.Linux終端經常使用快捷鍵get
新建終端:Ctrl + Shift +T 放大終端:Ctrl + Shift + + 縮小終端:Ctrl + - 終端全屏:F11 VMware全屏:Ctrl + Alt + Enter