Linux System Shell Command Line Operation Method

  

The shell command is a kind of Linux command, but it is independent of other commands of the Linux system. The Linux shell command line is a system. This article will introduce the operation method of the Linux system shell command line.

1. automatically filled

can be applied to automatically append the path name when the variable (beginning with the word $), user name (begin ~), command (word The first word on the command line), the host name (the word starts with @, only valid for the host name under /etc/hosts)

Command

Function

Alt- $

Show all possible items. Equivalent to pressing Tab

Alt-*

Inserting all possible matches

2. Command line history

history command directly outputting history , the default is 500.

History Commands

Commands

Actions

Ctrl-P

Move to the previous history, equal to the up arrow

Ctrl-N

Move to the next history, equal to the down arrow

Alt-<<>

Move to the beginning of history

Alt-"

Moves to the end of the history, the current command line

Alt-P

Non-incremental search. Enter the search string and type Enter to start searching

Alt-N

Forward non-incremental search

Ctrl-O

Execute history item, execute Skip to the next item after finishing. Used to execute a series of history

Ctrl-R

Reverse the search history; find the next match when searching

Ctrl-J

Copy the search content to the current command line (press the left and right arrow keys to copy, if you press Enter, the command will be executed immediately)

Ctrl-G or C

Exit search

! !

Repeat the last command, equivalent to the up arrow + Enter

! Number

The command to execute the history number line

! String

Execute the most recent history starting with string

! ? String

Execute the most recent history containing string Previous page1234Next page Total 4 pages

Copyright © Windows knowledge All Rights Reserved