history

Linux · Terminal · available in the simulator

What it does

Display or manipulate the history list.

Syntax

history [-c] [n]

Options and parameters

  • -c

    Clear the history list for the current session.

  • -d N

    Delete entry N.

  • N

    Display the last N entries.

  • -d

    Delete the specified history entry.

  • n

    Display only the last n commands.

    history 20

Usage examples

  • history
  • history 20
  • history -c
Practise history

Related commands