Online Linux Terminal Logo
OnlineLinuxTerminal
Система и процессыCLI Manual

$history

Display the list of previously executed terminal commands.

Синтаксис командыPOSIX Standard
history [OPTIONS]
Сообщество Linux2.4k Онлайн

Общайтесь с пользователями Linux, учите команды и скачивайте шпаргалки.

Попробуйте в интерактивной песочнице

Клиентская симуляция без установки с мгновенным результатом.

Открыть в полноэкранном терминале ↗
bash — terminal

Обзор и принцип работы

`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 / OptionDescription
-cClear 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

Outputs the chronological list of commands executed in the session.