1. After logging into Linux via Remote Tools Pietv (192.168.80.100), the location is the home directory of the currently logged-in User (home directory)
2. Symbols for home directories are represented by ~
The 3.Linux file system is a tree structure.
The root of the Linux file system is called roots, denoted by the symbol "/".
Use the symbol "..." in the Linux file system Represents a parent directory.
Use symbols in the Linux file system "." Represents the current directory.
Linux file system, if the file uses "." Begins with a hidden file.
There are two ways to represent Linux, one is absolute (the path begins with "/") and the other is a relative path.
4. Command CD (change directory): Jump to another directory
5. Command ls: See what is contained in the directory
Ls-l: Show more information
Ls-a: Show hidden files
6. Command pwd: Displays the current location
7. Command clear: Clear screen
Create folders, create files, copy files, move files, delete files (folders), permissions
8. Command mkdir: Create folder (ls after light color of the presentation folder, dark color of the presentation file)
Mkdir-p: Recursively create a parent folder (Mkdir-p p1/p2/p3)
9. Command touch: Create a blank file
10. Command more: View the contents of a file
11. Command RM: Delete files
Command rmdir: Delete a folder
Command RM-RF: Delete the file (clip), regardless of the level of depth, delete all, and do not give a hint
12. Command CP (copy): Copy file, another feature is to create a new file
13. Command MV (move): Moving files, there is also a function is to rename
*************************************************************
VI Operation:
(1) When using the command VI FL Enter, entered the VI editor, out of the read-only mode (only see can not write);
(2) Press the letter "I" (insert) or "a" (append) to enter the editing state;
(3) Press the "ESC" key on the keyboard, then press shift+: To enter the command state
If the input command Wq, it means to save the exit;
If the input command is q!, it means that the exit is not saved;
*************************************************************
Linux permissions are represented by 9-bit characters, rwx rwx rwx
In this case, R is the Read permission, W means write permission, X is the Execute permission,-Indicates no permission
This 9-bit character, each 3-bit group, is divided into 3 groups.
The first group represents the rights of the Creator;
The second group represents the permissions of the group;
The third group represents the rights of other people;
Permissions can also be represented with a number. Rwx 4+2+1=7 (chmod 777 FL) in digital notation
The default permissions for newly created files are 644; The default permissions for newly created folders are 755.
Command chmod: Modify permissions, three groups using the U, G, o means, assign permissions to use "+", remove the permission to use "-".
chmod u+x FL//Indicates that the creator of the file FL increased execution privileges;
chmod o-r FL//indicates file FL Remove Read permission
Common commands for Linux