Linux Basic Command Review

Source: Internet
Author: User
Tags documentation

1.ls Viewing files and folders

1). ls-a view files and folders, including hidden

2). ls-l view File and folder details

3). LS-LH View File and folder details, automatically generate file size units

4). Ls-alh above functions are available

5). Ls/bin View all file and folder information under the Bin folder in the root directory

6). Ls-alh/bin Detailed view of all file and folder information under the Bin folder in the root directory

7). Ls-alh/bin | More detailed query out of the information split screen display F: Next page, Shift+pageup, q exit

2. CD Switch directory

1). CD a enters a folder

2). cd.. Fallback to the previous level folder

3). CD-Fallback to the last destination folder

4). CD ~ Back to the home directory

5). Absolute path: Base on root, relative path: base on current path

3.touch Creating files

4.mkdir Creating folders

1). mkdir a/b/c-p Create multiple folders,-p for keywords

5. Help documentation

1). LS--help Help documentation

2). Man LS split screen display Help document: F: Next page, b previous page, q exit

6. History command historical record,! Number of rows Execution History command

7.gedit Open File More a.txt split screen view file

8. Redirection

1). ls-alh > A.txt Redirect The result set of the query to A.txt, no new, replace

2). Ls-alh >> A.txt Redirect The result set of the query to A.txt, no new, append

9.cat Viewing files

Tree view Document Structure

1.ls Viewing files and folders

1). ls-a view files and folders, including hidden

2). ls-l view File and folder details

3). LS-LH View File and folder details, automatically generate file size units

4). Ls-alh above functions are available

5). Ls/bin View all file and folder information under the Bin folder in the root directory

6). Ls-alh/bin Detailed view of all file and folder information under the Bin folder in the root directory

7). Ls-alh/bin | More detailed query out of the information split screen display

2. CD Switch directory

1). CD a enters a folder

2). cd.. Fallback to the previous level folder

3). CD-Fallback to the last destination folder

4). CD ~ Back to the home directory

5). Absolute path: Base on root, relative path: base on current path

3.touch Creating files

Linux Basic Command Review

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.