Some common commands for Linux beginners (1)

Source: Internet
Author: User

View Help:

Man command
Exit Help directory: Q

Switch directory: CD

CD Catalog

CD Directory/Directory

Cd.. : Top level Directory

CD/: Root directory
CD ~: Home

Creating directories and deleting directories

mkdir Create mkdir directory name
Mkdir-p a/b/c

RmDir Delete

RmDir directory Name: Only one empty directory can be deleted

List of files in the presentation directory (ll can be used later)
Ls
LS: The name of the visible file (and directory) to be displayed
Ls-a: Show the names of all the files
The file is preceded by "." It represents a hidden file.
Ls-l: Show file details
Shorthand Way: LL (★)
Ll-h: Friendly display

Browse files
Cat: Display all the contents of a file
Cat file name


MORE: Pagination Display
Spaces: Next Page
Enter: Next line


Less: Pagination display
Can be viewed via PgUp PgDn page


Tail (★)
View the contents of a file later
Tail-Show the following lines of file names
Tail-f file name
Dynamic viewing
For example:
Tail-f Catalina.xxx.log
End scrolling view with CTRL + C

Some common commands for Linux beginners (1)

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.