terminal.cab

All commands

history

Topic: Shell and scripts

Shell builtin: history

Shows the commands typed so far.

Package: core-nav

Usage

history [n]

Description

Show the lines typed in this shell so far, each with its number. With N, show only the last N lines.

Options in the simulator

No options.

8 more options of the real program, not in the simulator yet
  • -c not in the simulator yet

    Explanation to come

  • -d needs a value not in the simulator yet

    Explanation to come

  • -a not in the simulator yet

    Explanation to come

  • -n not in the simulator yet

    Explanation to come

  • -r not in the simulator yet

    Explanation to come

  • -w not in the simulator yet

    Explanation to come

  • -p not in the simulator yet

    Explanation to come

  • -s not in the simulator yet

    Explanation to come

Examples

From the lesson Faster
ls Downloads
invoice.pdf  photo.jpg
history
    1  ls Downloads
    2  history

Try it in the terminal

From the lesson Help and history
hostname
web-01
whoami
lerner
history
    1  hostname
    2  whoami
    3  history

Try it in the terminal

Where you learn it

Lessons

All commands