linux terminal fast move commands and history commands

control+a moves to the beginning of the terminal
control+e to move to the end of the terminal
control+k delete everything after the terminal cursor
control+d delete a single character after the cursor
control+b move the cursor forward
control+f move cursor backward
control+p previous command
control+l clear screen=clear
history 
    -c clears the entire command history
    -d 500 delete clause 500
    -d 510 3 delete three entries starting from 510
    -w save to history file
    Command History Tricks! n : execute n commands
                           !-n : Execute up to the nth command
                           ! ! : execute the previous command
                            ! + string: the most recent command in the command history that begins with the specified string
                            ! $ : refer to the last parameter of the previous command ================= esc .================alt+.
environment variable
PATH
HISTSIZES Number of history entries for bash

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326018892&siteId=291194637