Introduction to Linux commands

Source: Internet
Author: User

Introduction to Linux commands

1. General Format of Linux commands: cmd [options] [arguments]

Cdm: command name

Options: options

Arguments: Parameters

Eg: ls

Ls-l

Ls-l test.txt

Note: There are many options following the command in the following two ways:

Ls-l-r test.txt

Ls-lr test.txt (this method is more detailed when there are many options)

2. Call the HELP command to view the parameter description of the corresponding command: cmd indicates the command to be viewed

(1) cmd -- help

(2) man cmd

(3) info cmd

Eg: ls -- help

3. "wildcard" in the command: Fuzzy search is required sometimes.

(1) "*" matches 0 or more characters

(2 )"? "Match any character

(3) "[]" matches any character in the brackets

Eg: ls test *. txt displays all files or directories starting with "test" and ending with ". txt ".

Ls test ?. Txt files or directories that start with "test" and end with ". txt"

Ls test1_232.16.txt: test2.txt and test3.txt are displayed. If the current directory exists

Ls-l test.txt

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.