# For Linux terminal, understanding the command line
** 1. In the Linux system using virtual machine Ctrl + Alt + t to get into the terminal, the terminal where we can do all of the operating system, but we have to use the command line. **
* 2. For understanding the command line, use the command line in Linux system operation can be completed faster than Windows, improve programmer productivity. *
## Enter the following topic: learning to use the command line
# 1. Learning in the laboratory building in the shortcut command line use
(1) ** Tab ** key can be used to fill all orders (for my bad memory of this man ...)
(2) *** Ctrl + C *** command can be used to forcibly stop ** ** return to a controlled state.
(3) - Ctrl + s-- can be used to temporarily stop the current program, then press any key to continue the program.
(4) ** wildcard (*) and (?) Can be used to use ** had previously been named folder to find matching (also applies to people like me, laughing cry)
ps: Common wildcards There are many different wildcards have different meanings.
## 2 ** ** Create a user
Create a user needs root privileges, need to use the command ** sudo **
First, use sudo to create a new user in the format of ** $ sudo adduser xxx ** (user name is xxx)
Then enter the password to a new user
Finally, a user can use to switch sudo
** Exit use the shortcut Ctrl + d ** user to exit
### 3 ** ** delete users
We wrote earlier creation, since there will have to create a natural deleted
Directly enter the command line ** $ sudo deluser xxx --remove -home **
The directory structure 4 ** #### ** System
(1) The first is a standard directory structure ** FHS ** Linux system is similar to the tree structure
Use the command line *** $ tree / ***
(2) ** cd ** change directory command
The ** $ cd .. ** can be used to go back one level
** pwd ** use to get the current path (that is where you are located in the current file position)
Basic Operations ##### 5 files
(1) create a new blank document (only in the user's directory using cd ~ ** to return to the user's directory **)
*** touch *** use to create a blank file
(2) new directory
** $ mkdir ** be used directly to create a blank directory
Copy (3) file
Similar to the Windows system replication
Use the command line ** cp ** on the line
*** But if it is a directory, then copy, need to add -r parameter to recursively copy ***
Delete (4) file
Directly ** rm + you need to delete the file name ** If rm zxc
Rename (5) file
Direct use of command-line ** mv **
As ** mv hhh kkk **
In front of the file name is the name of your old files, you are behind the new file name.
(6) View file types
** file ** use to view the file type
As *** $ file / bin / 3d ***
*** These are my simple learning the command line, but I think in order to skillfully use the command line must be carried out several times to practice, practice makes perfect. ***
END