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: