
Linux. Просмотр списка команд Bash, описание команд, help, man
Для просмотра списка встроенных команд Bash введите «help». Встроенными называются команды, выполняемые самой оболочкой без привлечения других программ. На экран будет выведен список команд с кратким описанием параметров.
# Список команд Bash
$ help
GNU bash, version 4.4.0(1)-release-beget (x86_64-unknown-linux-gnu)
These shell commands are defined internally. Type `help` to see this list.
Type `help name` to find out more about the function `name`.
Use `info bash` to find out more about the shell in general.
Use `man -k` or `info` to find out more about commands not in this list.
A star (*) next to a name means that the command is disabled.
job_spec [&]
(( expression ))
. filename [arguments]
:
[ arg... ]
[[ expression ]]
alias [p] [name[=value] ... ]
bg [job_spec ...]
bind [lpsvPSVX] [-m keymap] [-f filename] [-q name] [-u name] [-r keyseq] [-x keys> popd [n] [+N | -N]
break [n]
builtin [shell-builtin [arg ...]]
caller [expr]
case WORD in [PATTERN [| PATTERN]...) COMMANDS ;; ]... esac
cd [-L|[-P [e]] [-@]] [dir]
#...
unalias [a] name [name ...]
unset [f] [v] [n] [name ...]
until COMMANDS; do COMMANDS; done
variables - Names and meanings of some shell variables
wait [n] [id ...]
while COMMANDS; do COMMANDS; done
{ COMMANDS ; }Для получения информации о команде введите её имя после «help». Отобразится информация о команде.
# Вывод информации о команде kill
$ help kill
kill: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Send a signal to a job.
Send the processes identified by PID or JOBSPEC the signal named by
SIGSPEC or SIGNUM. If neither SIGSPEC nor SIGNUM is present, then
SIGTERM is assumed.
Options:
-s sig SIG is a signal name
-n sig SIG is a signal number
-l list the signal names; if arguments follow `-l` they are
assumed to be signal numbers for which names should be listed
-L synonym for -l
Kill is a shell builtin for two reasons: it allows job IDs to be used
instead of process IDs, and allows processes to be killed if the limit
on processes that you can create is reached.
Exit Status:
Returns success unless an invalid option is given or an error occurs.Чтобы посмотреть информацию о командах, которых нет в списке выводимом командой «help», воспользуйтесь командой «man» + [имя команды], например:
# Вывод информации о команде ps
$ man psКоманда «man» отображает справочную информацию о любой команде, в том числе и о командах Bash.