Several common commands for Linux used (1) __linux

Source: Internet
Author: User

1.sudo: Get root permission, but need to enter password;

2.cd.. \ CD [Directory]: Access directory;

3.rm [file]: delete a file;

\ rm-r [contents]: Delete all of the directory layers at the same time

\ RM-RF [Directory]: Delete all the directory layers under this directory, and do not need one by one confirmation;

Reference Document: Http://www.cnblogs.com/wanqieddy/archive/2011/06/07/2074113.html

4.mv-f source file or directory target file or directory: force the meaning of coercion, if the target file already exists, do not ask and directly cover;

Reference Document: Http://www.jb51.net/LINUXjishu/272250.html

5.CP file1 file2: Copy file file1 to file file2;

Reference Document: Http://www.cnblogs.com/xd502djj/archive/2011/11/25/2263562.html

6.chmod 755 *: Change the permissions;

7 (Owner permission) 5 (Group User Rights) 5 (other user rights) XXX (destination file)

Reference Document: Http://www.jb51.net/LINUXjishu/315744.html

7.LL: The results are detailed, there is time, can read and write information, such as Windows detailed information;

LS only lists file names or directory names just like the list in Windows;

Reference Document: Http://blog.sina.com.cn/s/blog_54eeb5d90100k2z3.html

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.