alternatives-list - fetch information about possible alternatives
The altenatives-list trys to get shared lock. If lock cannot be obtained warning will be issued. This warning can be safely ignored.
To list all know master alternatives use /usr/sbin/alternatives-list -a command. Output depends on your local system configuration, but should look like this:
# /usr/sbin/alternatives-list -a
/usr/X11R6/bin/bsetbg
/usr/X11R6/bin/bsetroot
/usr/X11R6/bin/icewm
/usr/X11R6/bin/xvt
/usr/bin/autoconf-default
/usr/bin/automake-default
/usr/bin/cancel
/usr/bin/civclient
/usr/bin/cummulative-both
/usr/bin/emacs
/usr/bin/guile
/usr/bin/idle
...
To display slave alternatives also, add -S option to command above.
To display detailed information about some alternative use /usr/sbin/alternatives-list -s /usr/X11R6/bin/xvt command. Replace /usr/X11R6/bin/xvt with any alternative present on your system. Output depends on your local system configuration, but should look like this:
# /usr/sbin/alternatives-list -s /usr/X11R6/bin/xvt
/usr/X11R6/bin/xvt
status: master
mode: auto
points to: /usr/X11R6/bin/aterm
To display information about possible candidates for selected alternative add -C. Complete information about alternative can be displayed using all -s, -C and -D options.
# /usr/sbin/alternatives-list -sCD /usr/X11R6/bin/xvt
/usr/X11R6/bin/xvt
parent: nil
status: master
mode: auto
points to: /usr/X11R6/bin/aterm
candidates:
30 : /usr/X11R6/bin/Eterm
50 : /usr/X11R6/bin/aterm
15 : /usr/X11R6/bin/konsole
40 : /usr/X11R6/bin/xterm
/etc/altenatives/alternatives.xml - main alternatives config file.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |