До тех пор, пока руководство bash не будет изменено таким образом, чтобы сделать эту команду ненадлежащей (что очень мало), следующая команда покажет все ярлыки по умолчанию для bash.
man bash | grep -A294 'Commands for Moving'
[d1 ] Это дает результат, который выглядит следующим образом: Commands for Moving
beginning-of-line (C-a)
Move to the start of the current line.
end-of-line (C-e)
Move to the end of the line.
forward-char (C-f)
Move forward a character.
backward-char (C-b)
Move back a character.
forward-word (M-f)
Move forward to the end of the next word. Words are composed of alphanumeric characters (letters and digits).
backward-word (M-b)
Move back to the start of the current or previous word. Words are composed of alphanumeric characters (letters and
digits).
shell-forward-word
Move forward to the end of the next word. Words are delimited by non-quoted shell metacharacters.
shell-backward-word
Move back to the start of the current or previous word. Words are delimited by non-quoted shell metacharacters.
clear-screen (C-l)
Clear the screen leaving the current line at the top of the screen. With an argument, refresh the current line
without clearing the screen.
redraw-current-line
Refresh the current line.
Commands for Manipulating the History
accept-line (Newline, Return)
Accept the line regardless of where the cursor is. If this line is non-empty, add it to the history list according
to the state of the HISTCONTROL variable. If the line is a modified history line, then restore the history line to
its original state.
previous-history (C-p)
Fetch the previous command from the history list, moving back in the list.
next-history (C-n)
...
Если инструкция bash изменена, эта команда легко может быть изменена в соответствии с потребностями.
Выбор того, который вы хотите использовать:
sudo update-alternatives --config java
Пример вывода:
There are 2 choices for the alternative java (providing usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
1 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
* 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode
Press <enter> to keep the current choice[*], or type selection number:
Вы можете узнать, какие альтернативы вы используете для java или javac, используя --list:
sudo update-alternatives --list java
sudo update-alternatives --list javac