# bash reminder

// частеноко забываю..:(

# (some) HISTORY SEARCH AND REPLACE:

# execute the most recent command the contains the following string:
!?string

# globally search replace on the previous line:
!!:gs/old/new/

# Keyboard shortcuts:
CTRL-k: delete (‘kill’) from cursor position to the end of the line
* CTRL-u: delete from cursor position to the beginning of the line
* ALT-d: delete from cursor position to the end of the current ‘word’
* CTRL-w: delete from cursor position to the beginning of the current ‘word’
* CTRL-a: move cursor to the first character of the line
* CTRL-e: move cursor beyond the last character of the line
* ALT-a: move cursor to the first character of the current ‘word’
* ALT-e: move cursor to the last character of the current ‘word’
* CTRL-y: insert latest deleted ‘word’
* ESC-_ or !$: repeats the last argument of the previous command.

Leave a Reply

Your email address will not be published. Required fields are marked *