IT工作实用技巧

1.Shell命令行

光标移到行首:Ctrl+a
光标移到行尾:Ctrl+e
删除所有内容: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.查看内存

free -m
free -h
cat /proc/meminfo

5.Linux终端常用快捷键

新建终端:Ctrl + Shift +T
放大终端:Ctrl + Shift + +
缩小终端:Ctrl + -
终端全屏:F11
VMware全屏:Ctrl + Alt + Enter

推荐阅读更多精彩内容