Update-alternatives: Unterschied zwischen den Versionen
Erscheinungsbild
	
	
| Zeile 41: | Zeile 41: | ||
  0            /bin/nano            40        auto mode  |   0            /bin/nano            40        auto mode  | ||
  1            /bin/nano            40        manual mode  |   1            /bin/nano            40        manual mode  | ||
  * 2   |   * 2          /usr/bin/vim.basic   30        manual mode  | ||
  3            /usr/bin/vim.tiny    15        manual mode  |   3            /usr/bin/vim.tiny    15        manual mode  | ||
Version vom 11. September 2025, 09:15 Uhr
update-alternatives - Verwaltung symbolischer Links zur Bestimmung von Standardwerten für Befehle
Beschreibung
Installation
Anwendungen
get-selections
sudo update-alternatives --get-selections animate auto /usr/bin/animate-im6.q16 animate-im6 auto /usr/bin/animate-im6.q16 aptitude auto /usr/bin/aptitude-curses arptables auto /usr/sbin/arptables-nft automake auto /usr/bin/automake-1.16 awk auto /usr/bin/gawk builtins.7.gz auto /usr/share/man/man7/bash-builtins.7.gz c++ auto /usr/bin/g++ c89 auto /usr/bin/c89-gcc c99 auto /usr/bin/c99-gcc cc auto /usr/bin/gcc [...]
config
sudo update-alternatives --config vi There are 2 choices for the alternative vi (providing /usr/bin/vi). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/vim.basic 30 auto mode 1 /usr/bin/vim.basic 30 manual mode 2 /usr/bin/vim.tiny 15 manual mode Press <enter> to keep the current choice[*], or type selection number:
sudo update-alternatives --config editor [sudo] password for dirkwagner: There are 3 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ------------------------------------------------------------ 0 /bin/nano 40 auto mode 1 /bin/nano 40 manual mode * 2 /usr/bin/vim.basic 30 manual mode 3 /usr/bin/vim.tiny 15 manual mode Press <enter> to keep the current choice[*], or type selection number:
Aufruf
$ update-alternatives [Option …] Befehl
Optionen
Argumente
Umgebungsvariablen
Exit-Status
Konfiguration
Dateien
Sicherheit
Dokumentation
RFC
Man-Page
- update-alternatives(1)
 - dpkg suite
 - update-alternatives(1) 1.21.9 2022-10-15
 
Info-Pages
Siehe auch
- ln(1)
 - FHS (der Dateisystem-Hierarchie-Standard, Filesystem Hierarchy Standard)