Common Linux commands

Source: Internet
Author: User

Common Linux commands

Currently, we are exposed to Windows operating systems, so we often use git bash to submit code to github.

Git bash is a command line tool used to simulate Linux in Windows.

Here we will summarize the commonly used Linux commands.

1. pwd

PwdUsed to view the path of the current directory

2. mkdir

MkdirCreate a folder

3. mkdir-p

Mkdir-pCreate a parent folder

4. cd

CdChange directory

5. touch

TouchCreate an empty file

6. ls

LsDisplays the files in the current folder.

7. ls-

Ls-Display All files in the current folder./And ../

8. ls-l

Ls-lUse a long list directory to display the files in the current folder

9. rm

RmRemove a file

10. rm-r

Rm-rRemove folder

11. cp

CpCopy a file or folder

12. mv

MvRename a folder

Mkdir testmv test test2
13. vi

ViThe command is used to enter the default vi editor of Linux for editing.

For vi usage, refer to here

This article permanently updates the link address:

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.