Common commands in ubuntu (1) and Common commands in ubuntu (

Source: Internet
Author: User

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 ...............

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.