Forrest logo
back to context overview

history

List of commands for history:

  • history:ai:19ce2 history | grep
    $ history | grep
    try on your machine
    explain this command
  • history:ai:46023 Searches through command history for instances of the word 'export'
    $ history | grep export
    try on your machine
    explain this command
  • history:ai:60a72 Exports the command history to a file
    $ history | export
    try on your machine
    explain this command
  • history:tldr:3cd15 history: Display the commands history list with line numbers.
    $ history
    try on your machine
    explain this command
  • history:tldr:413a4 history: Display the last 20 commands (in `zsh` it displays all commands starting from the 20th).
    $ history ${20}
    try on your machine
    explain this command
  • history:tldr:7b6d0 history: Overwrite history file with history of current `bash` shell (often combined with `history -c` to purge history).
    $ history -w
    try on your machine
    explain this command
  • history:tldr:9c5f3 history: Delete the history entry at the specified offset.
    $ history -d ${offset}
    try on your machine
    explain this command
  • history:tldr:e6ed2 history: Clear the commands history list (only for current `bash` shell).
    $ history -c
    try on your machine
    explain this command
back to context overview