Cmd Generator

history

Display or manipulate the command history list.

history

Just run history to display the command history list with line numbers.

Examples

# Show command history
history

# Clear history
history -c

# Delete entry at offset 123
history -d 123

# Append current session to history file
history -a

# Write history to file
history -w

# Add a command to history
history -s "echo hello"