Система и процессыCLI Manual
$history
Display the list of previously executed terminal commands.
Синтаксис командыPOSIX Standard
history [OPTIONS]Попробуйте в интерактивной песочнице
Клиентская симуляция без установки с мгновенным результатом.
bash — terminal
AST Sandbox (Free)
Обзор и принцип работы
`history` shows the shell history list with line numbers. It allows users to review previous commands, audit actions, or re-run previous commands using the `!n` event recall syntax.
Основные флаги и параметры команды
| Flag / Option | Description |
|---|---|
| -c | Clear the history list in the current session. |
| -d [OFFSET] | Delete the history entry at position OFFSET. |
| [N] | List only the last N commands. |
Практические примеры использования
#1View recent command history
historyOutputs the chronological list of commands executed in the session.
Похожие команды Linux
$psСистема и процессы
Отображение моментального снимка активных процессов операционной системы.
$topСистема и процессы
Display real-time Linux processes and system resource utilization.
$htopСистема и процессы
Interactive process viewer with colorful CPU meters and mouse support.
$killСистема и процессы
Send termination or control signals to processes by PID.
$whoamiСистема и процессы
Print the effective username associated with the current shell session.
$dateСистема и процессы
Display or set system date and time.