Skip to content

Commit

Permalink
Update update-alternatives.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsxu authored Oct 22, 2017
1 parent 5791f2e commit 59a42c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pages/linux/update-alternatives.md
Original file line number Diff line number Diff line change
@@ -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}}`

0 comments on commit 59a42c5

Please sign in to comment.