####################### #man命令 ###########################
Man level target
Man 1 File name # # # #查找命令的帮助
Man 5 file name # # # #查找配置文件的帮助
man-f Keyword # # # #显示给定关键字的简短描述
Man Exit # # #按q退出
Quick usage of man
/Keyword # # #搜索关键字并且高亮显示结果 (Directly inside the man Press/)
N # # #向下匹配高亮结果
N # # #向上匹配高亮结果
Pagup # # #向上滚动一个屏幕
Pagdown # # #向下滚动一个屏幕
Up Key # # #向上滚动一行
Next Key # # #向下滚动一行
D # # #向下滚动半个屏幕
U # # #向上滚动半个屏幕
G # # #回到man的最前面
G # # #回到man的最后面
Q # # #退出man页面
##################/usr/share/doc/*##############
The files in this directory are the instructions for the Software installation package
########################################################
####################### #第四单元 #########################
########################################################
Execute under normal user
Find/etc-name passwd
Find: '/etc/pki/ca/private ': Permission denied
Find: '/etc/pki/rsyslog ': Permission denied
Find: '/etc/audit ': Permission denied
Find: '/ETC/POLKIT-1/RULES.D ': Permission denied
Find: '/etc/polkit-1/localauthority ': Permission denied
Find: '/etc/dhcp ': Permission denied
Find: '/etc/selinux/targeted/modules/active ': Permission denied
Find: '/etc/lvm/archive ': Permission denied
Find: '/etc/lvm/backup ': Permission denied
Find: '/etc/lvm/cache ': Permission denied
Find: '/ETC/GRUB.D ': Permission denied
Execute under Root user
Find/etc-name passwd
/etc/passwd
/etc/pam,d/passwd
How to manage output
Find/etc-name passwd > File # # # #重定向正确输出
Find/etc-name passwd 2> File # # # #重定向错误输出
Find/etc-name passwd &> File # # # #重定向所有输出
Find/etc-name passwd >> File # # # #追加正确输出
Find/etc-name passwd 2>> File # # # #追加错误输出
Find/etc-name passwd &>> File # # # #追加输出
Find/etc-name passwd > File 2>&1 # # # #重新定义错误输出为正确
| # #管道符
The pipe only allows the correct output to pass
Tee # # # #复制一份输出
2>&1 | # # #转换错误输出为正确再通过管道
######################### #vim用法 ####################
1. Command mode
Set
Vim/etc/vimrc
: Set Nu|nonu # # # #行号的显示 | cancel
: Set Mouse=a # # # #设定鼠标可以操作光标位置
: Help # # # #查看vim的用法,: Q quit
Ctrl + V # # # #高亮选择模式, you can choose one area to operate
U # # # #恢复到未操作之前
CTRL + R # # # #恢复到操作之后
Ctrl + V # # # #批量添加字符, select the bit to which you want to add the characters, press the I key, add the characters you want to add, press ESC
2. split Screen function
Ctrl+w S # # # #上下分屏
Ctrl+w v # # # #左右分屏
Ctrl+w C # # # #撤销光标所在屏幕
Ctrl+w | down | left | Right # #移动光标到指定的屏幕中
3. Replacement characters
in command mode
:%s/original character/replacement character/g
4. Search keywords
/keywords
N Match down
N Up match
5. Management of characters
DW Delete Word with cursor
DL Delete the letter of the light
DD Delete a whole row
D Digit D Deletes the number of rows specified by the number
D number up on key to delete specified number of rows
YW copy the word where the cursor is located
YL Copy the letter of the light
YY Copy a whole line
P Paste
Y number y copies the number of down rows specified
CW clipping cursor in the same word
CL Shearing light in the same letter
CC Cut a whole line
C digit C cut number specified down line number
When the cut is complete, it enters insert mode, exits the insert mode and then presses the P key to paste
: Line number # #移动光标到指定行
G # #移动光标到文件末行
6.vim Plug-in mode
I cursor sits at position insert character
I Insert the line at the beginning of the cursor
A next insertion of the character of the cursor
A at the end of the line where the cursor is inserted
o The next line in the row where the cursor is
O the previous line of the row where the cursor is located
s remove the character insertion of the cursor
S Delete the line where the cursor is inserted
Exit mode of 7.vim
Enter in command mode
: Q # # #退出, can be used when no changes have been made to the file
: q! # # #强制退出
: Wq # # #退出保存
: wq! # # #强制退出保存
############## #vimtutor命令 ##########
Vimtutor command is a description of the use of vim
Use: Q to exit this description
############## #图形中的文本编辑器gedit #################
Crtl+n # #新建窗口
Ctrl+s # #保存文件
Ctrl+o # #打开文件
Ctrl+x # #剪切
Ctrl + V # #粘贴
CTRL + C # #复制
For Giedit software help view can be used to enter this command Yelp Help:gedit
This article is from the "12148275" blog, please be sure to keep this source http://12158275.blog.51cto.com/12148275/1897033
Linux Learning notes--man, pipe breaks, vim editing and quick actions