GO KALI FREE
System Information

history Linux Command

Shows the list of previously executed commands in the current shell session.

What does history do?

Shows the list of previously executed commands in the current shell session.

Syntax

history [n]

Practical example

history 20

Related System Information

cal

Displays a calendar in the terminal.

clear

Clears the terminal screen.

date

Displays or sets the system date and time.

alias

Creates or displays command aliases (shortcuts for longer commands).

echo

Prints text or the value of variables to the terminal.

unalias

Removes a previously defined command alias.