Common commands in ubuntu (1) and Common commands in ubuntu (
1. view the directory Ctrl + L
2. Under the terminal:
Copy the command: Ctrl + Shift + C.
Paste command: Ctrl + Shift + V combination key.
3. Decompress tar xzf flie.tar.gz
4. mkdir folder --/create a folder
Rmdir empty folder name --/delete an empty folder
Rm file name --/delete one or more files
Rm-rf non-empty folder name --/delete everything in a non-empty folder
If you cannot delete or create a folder, you can use the sudo command, such as The sudo rm-rf folder name.
You can also su root first, and then perform the operation with the root permission.
5. First, opt is a system folder, which requires certain permissions to be protected.
1. Open the terminal and enter the following command.
2. sudo chmod 777/opt and press Enter. At this time, the system will prompt you to enter the administrator password, so that opt can create a file.
3. Use the cp command to copy the file to the/opt folder.
Cp/home/abc/opt
In this way, copy the abc file in the home folder to/opt.
6. Create a Super User
Sudo passwd root
7. Switch users
Su User Name
8./mnt/hgfs
"On the Option page in VM-> Setting, set Shared Folders to enable. This function can mount the directory on the host to the/mnt/hgfs directory on the Guest"
9. sudo apt-get update (update source)
1. Confirm to install sshd:
$ Sudo apt-get install openssh-server
2. Start sshd:
$ Sudo net start sshd
3. Check the firewall settings and disable the Firewall:
$ Sudo ufw disable
Inspection Method:
Enter the following command:
$ Ssh localhost
Note: Subsequent Updates ...............