Commands include internal commands and external commands. the command format is case sensitive. internal Command: Command Prompt. There is no external command corresponding to the executable binary file in a shell. The command format is executable: # command [options] [arguments] [options]: parameters for executing the conversion command: 1,
Command:
Commands are divided into: Internal commands and external commands. \ 'command formats are strictly case sensitive \'.
Internal Command: Command Prompt. There is no executable binary file corresponding to a shell.
External command: an executable binary file is available.
Format: # command [options] [arguments]
[Options]: conversion Command Execution Method
Parameters: 1. Short options:-l,-h,-lh 2. long Options: -- help, -- long (documentary word)
[Arguments]: target object of the command
Which: View the command location
Type: view the command type
History: View command history
! N: run the nth command.
! + (String): Indicates executing the latest command starting with this string.
!! : Execute the previous command
! -N: Execute the nth command.
! $: Reference the last parameter of the previous command.
Common commands:
Cd: Change Directory switch to the current user's home Directory without any parameters
Pwd: Printing Working Directory: displays the Working Directory
Cd-Indicates switching between the current directory in the previous directory
Cd ~ Switch student to the student's home directory
Cd... cut to parent directory
Ls: Parameter ::
-L displays the file details.
-H: easy to read.
-A: All files are displayed.
-A does not display the "." "..." directory.
-D: displays the directory attributes.-r is sorted in reverse order.-R recursively displays the files in each subdirectory.