The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

alternatives-list (8)
  • >> alternatives-list (8) ( Linux man: Команды системного администрирования )
  •  

    NAME

    alternatives-list - fetch information about possible alternatives
     
    

    SYNOPSIS

    alternatives-list [-hvcaSdsCD] [--help] [--version] [--config name] [--all] [--with-slaves] [--show] [--with-candidates] [--with-deps] [alternatives...]

     

    DESCRIPTION

    The alternatives-list program shows current state of alternatives. Alternatives to examine should be listed in command line. The --all option selects all known alternatives. By default it outputs only names of selected alternatives. Detailed information can be requested with --show option. Additional information can be obtained using --with-candidates and --with-deps options.

    The altenatives-list trys to get shared lock. If lock cannot be obtained warning will be issued. This warning can be safely ignored.

     

    OPTIONS

    -h, --help
    display help screen

    -v, --version
    display version information

    -c, --config filename
    use filename as an alternatives configuration file. Default value is /etc/alternatives/alternatives.xml

    -a, --all
    select all known master alternatives

    -S, --with-slaves
    select all known master and slave alternatives. This option will work only with -a option.

    -s, --show
    display information about selected alternatives

    -d, --display
    same as --show. This option was added for backward compatibility with``old-style'' alternatives

    -C, --with-candidates
    display list of candidates for selected alternatives. This option can be used only with --show.

    -D, --with-deps
    display master-slave relationships for selected alternatives. This option can be used only with --show.

     

    EXAMPLES

    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                 

     

    FILES


     /etc/altenatives/alternatives.xml - main alternatives config file.

     

    AUTHOR

    Stanislav Ievlev <inger@altlinux.org>.


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    OPTIONS
    EXAMPLES
    FILES
    AUTHOR


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру