Linux command line

Source: Internet
Author: User

pwd View the current directory

/root slash equivalent to root directory

CD Change directory switch catalog CD/--means switch to the root directory

ls View the files in the current directory

ls-l listing the current directory detail file information

ls-a Show hidden files

ls-lh User-friendly Display file list H (human)

CD.. Go back to the top level directory

vim. Test creates a hidden file

Edit File

Vim file name

Press I to enter insert mode

After you finish writing the file,

Press ESC, then press shift+: Key, enter Wq, then hit enter, the file is saved and exited

Cat File name to view the contents of the document (to show you all the contents of the whole file)

More File name One-page view of the contents of a document

mkdir file creation Directory

Mkdir-p cn/hunan/changsha/yueluqu/t

Represents creating 4 directories-P for recursive creation, one layer at a level to create a directory

Tree Directory Name displays the data structure of the directory

Tree displays the data structure of the current directory

MV FileName Directory name/ move file to xx directory

. Represents the current directory

.. Represents a top-level directory

RM file name Delete file

Linux command line

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.