mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 09:15:31 +02:00
Update update-alternatives.md
This commit is contained in:
parent
5791f2efc7
commit
59a42c5798
1 changed files with 6 additions and 6 deletions
|
@ -1,19 +1,19 @@
|
|||
# update-alternatives
|
||||
|
||||
> A convenient tool for maintaining symbolic links that determining default commands.
|
||||
> A convenient tool for maintaining symbolic links to determin default commands.
|
||||
|
||||
- Add a symbolic link:
|
||||
|
||||
`sudo update-alternatives --install /usr/bin/java java /opt/java/jdk1.8.0_102/bin/java 300`
|
||||
`sudo update-alternatives --install {{link}} {{name}} {{path}} {{priority}}`
|
||||
|
||||
- Configure a symbolic link:
|
||||
|
||||
`sudo update-alternatives --config java`
|
||||
`sudo update-alternatives --config {{name}}`
|
||||
|
||||
- Remove a symbolic link:
|
||||
|
||||
`sudo update-alternatives --remove java /usr/bin/java`
|
||||
`sudo update-alternatives --remove {{name}} {{path}}`
|
||||
|
||||
- Display information about the specified link group:
|
||||
- Display information about a specified command:
|
||||
|
||||
`update-alternatives --display java`
|
||||
`update-alternatives --display {{name}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue