Help command
Man + command
Command + -help
whatis + command 1 + command 2: can easily explain multiple commands
Help for Query Commands
Files, Directory Common Commands
ls
List files+directories in the current directory (-starts with files, starts with dir For the directory)
cd
The path of the transformation can be absolute or relative.
pwd
Getting the current path
mkdir
Creating a new directory
rmdir
Deleting a directory (can only delete Non-empty directory)
rm –r
Recursively delete all
rm –rf
Force all deletions
touch< Br>
New file (the suffix name of the file in linux has no meaning, only the meaning of the prompt)
cp (copy)
cp + file 1 + file 2, copy file 1 to File 2
cp –r + folder 1 + folder 2, copy folder 1 to folder 2, r stands for recursive call
mv (move)
Mv + file 1 + folder 2, move 1 to 2
mv -r
recursive move, mv + folder 1 + folder 2
vi
Text Editor, two common modes
Command
Input
more
Viewing file contents
Example more + File name
cat
Positive order view
tac
Reverse view
head
Head start with parameters view
Example Head -3 XX.txt, view the first 3 lines of XX
tail< Br>
Start of the tail
find
Find the file with parameters
Example find /-name *local Start from the root directory, find by name, suffix is Local
whereis(where these commands come from)
followed by the command, get the executable file and help documentation
ln
link, create a new copy File, synchronized with the source file. It will not delete
ln A B at the same time; B is A copy, A, B sync, modify A or B, equal to modify two, when the delete is not synchronized.
ln –s
Soft links, which are shortcuts
Example ln –s A C; C is a shortcut to A. The difference with hard links is that after A is deleted, C is also deleted synchronously.
wc
Counts the number of lines, words, of the specified text file.
grep
Finding the line of the specified string in the file
Example: grep + character + file name
Understand the process: ? PID, PPID? Current process status? Memory allocation? CPU and actu
For all organizations and companies, data is the most important to them, and even for e-com
Logging is very important for security. It records the various things that happen every day in the s
1, role: list the contents of the directory; 2, format: ls [options] [files] [options] is
Linux service NFS and SAMBA services
Detailed introduction of VI commands under LINUX
Linux command (in the use of -a, -o, not in find)
Setting up the CentOS firewall open port
Project Management Software Redmine+Ruby+Passenger+Nginx Installation
Character encoding and conversion tool for files under GnuLinux
Linuxbond configuration steps, seven bond mode descriptions
Ubuntu Linux environment variable PATH setting
Nokia spokesperson corrected the rumor that Win8 tablet will be launched
Windows7 installed "F11 one key restore wizard"
Win8.1 blue screen prompts KERNEL SESURTY CHECK FAILURE error repair method
How to create shortcuts in win7 window mode
We need to understand some things about Windows 7 Beta 1
How to delete the IE error certificate after reinstalling the Win7 Ultimate?
Win7 connection shared printer error code 0x80070035 how to do