Biblioteka GNU Readline jest wykorzystywana w programach z wierszem poleceń. Takie programy to m.in. bash, ksh, zsh, python, bc, gnuplot, gpg, mysql, psql czy xmllint.
| Skrót | Działanie |
|---|---|
Ctrl + a | Skocz na początek linii. |
Ctrl + b | Cofnij kursor o jedną pozycję. |
Ctrl + c | Terminate the command. |
Ctrl + d | Usuń znak pod kursorem. |
Ctrl + e | Skocz na koniec linii. |
Ctrl + f | Przesuń kursor o jedną pozycję do przodu. |
Ctrl + h | To samo, co backspace. |
Ctrl + k | Delete to EOL. |
Ctrl + l | Wyczyść ekran. |
Ctrl + r | Search the history backwards. |
Ctrl + r | Search the history backwards with multi occurrence. |
Ctrl + u | Usuń wszystko od kursora do początku linii. |
Ctrl + xx | Move between EOL and current cursor position. |
Ctrl + x @ | Show possible hostname completions. |
Ctrl + z | Suspend/ Stop the command. |
Alt + < | Move to the first line in the history. |
Alt + > | Move to the last line in the history. |
Alt + ? | Show current completion list. |
Alt + * | Insert all possible completions. |
Alt + / | Attempt to complete filename. |
Alt + . | Wstaw w miejscu kursora ostatni argument poprzedniej komendy. |
Alt + b | Przenieś kursor na pierwszy znak poprzedniego słowa. |
Alt + c | Zmień słowo na pisane z wielkiej litery (capitalize). |
Alt + d | Usuń słowo. |
Alt + f | Przeskocz kursorem o jedno słowo do przodu. |
Alt + l | Zamień wszystkie znaki w słowie przed kursorem na małe. |
Alt + n | Search the history forwards non-incremental. |
Alt + p | Search the history backwards non-incremental. |
Alt + r | Recall command. |
Alt + t | Move words around. |
Alt + u | Make word uppercase. |
Alt + BACKSP | Delete backward from cursor. |
Alt-Ctrl-e | Expand command line. |
Esc + t | Swap the last two words before the cursor. |
Esc + . | Yank last argument to previous command. |
!! | Execute last command in history. |
!abc | Execute last command in history beginning with abc. |
!abc:p | Print last command in history beginning with abc. |
!n | Execute nth command in history. |
!$ | Last argument of last command. |
!^ | First argument of last command. |
\^abc\^xyz | Replace first occurance of abc with xyz in last command and execute it . |