Command Mode
Enter "dd" to delete this line
Press "p" to paste
Insert mode:
a: after the cursor is inserted from this position
A: the insertion end of the line
i: Before the insertion cursor
I: First insert the line
o: Insert the cursor on the next line of the line
O: Insert the cursor on the line
Press EXC exit from the insert mode
To add a file name after the argument to ensure the operation who
-D: parameter is deleted from the current cursor position to the end of the line
UNIX user information is present in the / etc / passwd
Explain this line: left to right:
User name, there is no password (x indicates that this is a shadow password, the password is not on here, somewhere else), user id (0 is basically an administrator), group id, where the group name
After the shell is able to use his home directory is located (in this document only shell to look in the "bin / bash" users)
Password stored in the "/ etc / shadow" file inside this
The exclamation point is not representative of the password
There is a password if you want to encrypt
which: is to check where the files of the secret order
Command in the bin directory ordinary users can also perform
But the command in the sbin directory only administrators can perform
date: View
date> 1: 1 on the date of this document to see inside
cat:
Archive: The return multiple files into one file
Compression: compression volume
gzip compressed file compressed file name after name .gz
gzip -d extract the filename .gz (-d is used to decompress)
Plus a parameter 9, can substantially reduce the (small file makes no difference)
bzip2 gzip compression is greater than the magnitude of the suffix is bz2
It can also be used -9 parameter, -d are used to decompress
tar command to archive:
Represents the 1,2, ss these three documents classified as 3.tar this file, tar this extension must be added
After completion of the archive source file there (generally the first in a compressed archive)
tar can also decompress gzip or bzip2 the archive
-C: extract the specified directory
./: Run the file (must ensure that there is permission to run)
If you do not have permission to use the chmod command to give him permission
x:1
r:4
w:2
Their purview and 7
"Chmod 777 filename" so that you can put this all permissions to all files open
Your CD-ROM directory, can only be read but not write
The packages are in the Packages this directory
How many files in this directory View
First of all the contents of a file to import, and then wc file
This is a man above package is installed
Use the rpm command to install the v parameter is displayed progress
man is a command to display help information
Uninstall man
Plus a -e parameter on it
qa: Ask a man this package is not installed
qi: This man asked in detail about the role of software
ql: the installation directory
yum install software directly with the name, if you install this software package needs more, then he will find himself
We have a lot of CD inside the package, if you want to use something new it can go online to find
Enter the name of the software directly on the command interface on it
Downloaded directly from the Internet
deb installation package type
-r home will also delete files in the directory