bash

GNU Bourne-Again SHell: интерпретатор команд с расширением POSIX-возможностей.

Готовые примеры · man page

Флаги

Arrange for the debugger profile to be executed before the shell starts. Turns on extended debugging mode (see the description of the extdebug option to the shopt builtin below).

Equivalent to -D, but the output is in the GNU gettext “po” (portable object) file format.

Equivalent to -D.

Display a usage message on standard output and exit successfully.

Equivalent to -l.

Do not use the GNU readline library to read command lines when the shell is interactive.

Do not read either the system-wide startup file /etc/profile or any of the personal initialization files ~/.bash_profile, ~/.bash_login, or ~/.profile. By default, bash reads these files when it is invoked as a login shell (see INVOCATION below).

Do not read and execute the personal initialization file ~/.bashrc if the shell is interactive. This option is on by default if the shell is invoked as sh.

Enable posix mode; change the behavior of bash where the default operation differs from the POSIX standard to match the standard.

Execute commands from file instead of the standard personal initialization file ~/.bashrc if the shell is interactive (see INVOCATION below).

The shell becomes restricted (see RESTRICTED SHELL below).

Equivalent to -v.

Сгенерировать список возможных дополнений указанного типа: alias, arrayvar, binding, builtin, command, directory, disabled, enabled, export и др.

Оболочка выполняет раскрытие фигурных скобок (brace expansion); включено по умолчанию.

Выполнить command в среде subshell и использовать его вывод как список возможных дополнений.

Напечатать список всех двойных кавычек с префиксом $ для перевода; подразумевает -n, команды не выполняются.

Раскрыть шаблоны glob по правилам extglob и записать совпадения в стандартный вывод.

Вызвать shell-функцию function в текущей оболочке и взять дополнения из массива COMPREPLY.

True if file exists and is owned by the effective group id.

Включить подстановку истории в стиле !; по умолчанию включена в интерактивной оболочке.

True if file exists and is a symbolic link.

True if file exists and has been modified since it was last accessed.

True if file exists and is owned by the effective user id.

Перечислить имена и привязки функций readline; оставшиеся аргументы ограничивают вывод указанными именами.

varname True if the shell variable varname is set and is a name reference.

True if file exists and is a socket.

Наследовать ловушки DEBUG и RETURN в функциях, подстановках команд и командах subshell.

Перечислить текущие имена и значения переменных readline.

Разбить wordlist по символам IFS, раскрыть каждое слово и предложить те, что совпадают с началом дополняемого слова.

Перечислить все привязки клавишных последовательностей к встроенным командам оболочки в формате, пригодном для повторного bind.

True if file exists.

True if file exists and is a block special file.

Читать команды из первого неопционного аргумента command_string; последующие аргументы задают $0 и позиционные параметры.

True if file exists and is a directory.

True if file exists.

True if file exists and is a regular file.

True if file exists and is set-group-id.

True if file exists and is a symbolic link.

Запустить оболочку в интерактивном режиме.

True if file exists and its “sticky” bit is set.

Заставить bash вести себя так, будто она вызвана как login-оболочка.

Использовать keymap как карту клавиш для последующих привязок: emacs, emacs-standard, emacs-meta, emacs-ctlx, vi, vi-move, vi-command или vi-insert.

optname True if the shell option optname is enabled. See the list of options under the description of the -o option to the set builtin below.

Изменить формат вывода на предписанный POSIX.

Показать последовательности клавиш, вызывающие названную функцию readline.

Сделать оболочку ограниченной (restricted shell).

Читать команды из стандартного ввода; позволяет задать позиционные параметры при интерактивном запуске или чтении через pipe.

Истина, если дескриптор файла fd открыт и ссылается на терминал.

True if file exists and its set-user-id bit is set.

varname True if the shell variable varname is set (has been assigned a value). If varname is an indexed array variable name subscripted by @ or *, this returns true if the array has any set elements. If varname is an associative array variable name subscripted by @ or *, this returns true if an element with that key is set.

True if file exists and is writable.

Включить трассировку: печатать каждую команду после её раскрытия.

bash

Построчное объяснение

bash (command)
GNU Bourne-Again SHell: интерпретатор команд с расширением POSIX-возможностей.

История