Preparing your MacBook---linux commands (top)

Source: Internet
Author: User
Tags file copy macbook

LS Lists the sub-files in the current directory

Ls-l the sub-file details in the current directory, of course, with "LL" can also
Ls-a list all files, including hidden files

——————————————————————

Create an empty directory mkdir the subordinate directory name

Directories such as mkdir test to create test

Mkdir-p Multilevel Directory

such as mkdir test/test1 create the test directory and create a test1 directory under that directory

————————————————————————————————————

Cd

CD ~ Home directory of home directory root account is the home directory of the root normal user is home

Cd. To the current directory

Cd.. Top level Directory

CD Back home directory

CD-Back to the directory before the jump

——————————————————————————————————————————

RmDir Directory name Delete empty directory only empty directory

————————————————————————————————————

RM-RF files or directories to be deleted This command is often deleted and cannot be retrieved.

Note: Do not "RM-RF/" Linux will commit suicide really

————————————————————————————————————————

CP source file destination file copy file

Cp-r Source Directory Destination Directory

——————————————————————————————————————————————

MV source file destination file cut or rename no tube is file or directory

————————————————————————————————————————————

ln source file shortcut creates a hard link and the source file has the same effect

Ln-s source file shortcut creation Soft connection source file is deleted and will expire

Preparing your MacBook---linux commands (top)

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.