/ Bin: Binary abbreviation This directory is the most frequently used commands
/ Home: storage of the user's home directory ordinary, every user in Linux has its own directory, the directory name is based on the general user account named
/ Root: the directory for the system administrator, also known as the user's home directory's super powers
/ Etc: all systems needed for management configuration files and subdirectories
/ Usc: This is a very important directory, many applications and user files are placed in this directory, Iprogram files directory under similar windows
/ Media: linux system will automatically identify a - some devices, such as U disk, CD-ROM, etc., when the identification device mounted to linux will recognize this directory
/ Mnt: The system provides this directory is to enable users to temporarily mount other file systems, we can use an external memory mounted on / mnt, and then enter the directory where you can view the content.
/ Opt: This is for the host to install additional software placed in the directory. For example, you install a mysq | database you can go into default, this directory is empty
/ Var: This directory contains a constantly expanding with something we were used to modify those directories are often placed in this directory. Including various log files.
VIM editor
Three modes: normal mode, edit mode, command mode
1, the general pattern
grammar |
Functional Description |
yy |
Copy the current cursor line |
Digital y y |
Copy the period (from a few lines to a few lines) |
p |
Paste line arrow to the object |
in |
Undo the last step |
dd |
Delete current line cursor |
Digital d d |
How many lines after the cursor is deleted (including) |
x |
To delete a letter, the equivalent of del |
X |
To delete a letter, the equivalent of Backspace |
is |
Copy a word |
dw |
To delete a word |
shift+^ |
To move the line head |
shift+$ |
Move to the end of the line |
1+shift+g |
Move to the header, the digital |
shift+g |
Move to footer |
Digital N + shift + g |
Move to the goal line |
2, Edit mode
button |
Features |
i |
Before the current cursor |
a |
The current cursor |
The |
The next line of the current cursor row |
I |
Cursor line foremost |
A |
The last line where the cursor |
THE |
On the current line of the cursor line |
3, command mode
command |
Features |
:w |
Storage |
:q |
drop out |
:! |
Enforcement |
/ To find the word |
A look - n, N look up |
? To find the word |
Find the n is a, shift + n is a look down |
: Not set |
Show Line Numbers |
:set nonu |
Close line number |
Three modes of conversion