Unix Tutorial
  • COMMANDS
    Advanced Unix Commands Basic Unix Commands Linux Commands macOS Commands Solaris Commands
  • VIDEOS
  • REFERENCE
    SSH SElinux tmux Ansible Docker
  • PROJECTS
  • GLOSSARY
  • SOFTWARE
    Homebrew macOS RedHat Linux

    history - show command history in terminal

    history command
    history command

      history is a very simple command available in most Linux/Unix shells. It returns a list of last executed commands in an ordered list. Most recent commands are shown last.

      In some shells it’s possible to customise command history with timestamps.

      See Also

      • Basic Unix Commands
      • Unix Commands
      • ls command
      • Filesystem navigation commands
      • tmux mouse mode in macOS
      • more command
      • less command
      • pwd command
      • cat command

      Get in Touch

      IT Consultancy

      I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!

      Search

      Recommended

      Educative

      Recent Articles

      Post Thumbnail

      macOS Tahoe

      macOS Tahoe is the upcoming major release of macOS …

      Post Thumbnail

      Centralized Bash history with timestamps

      BASH is my Linux shell of choice (it’s zsh on …

      Post Thumbnail

      Inspect filesystem operations with fs_usage in macOS

      hey Unless you disable SIP, most of DTrace based …

      Post Thumbnail

      How-To: Upgrade Ubuntu 23.04 to 24.10

      I reliased one of my Raspberry Pi systems was …

      Post Thumbnail

      macOS Sequoia 15.0

      Apple keeps shipping public betas of macOS Sequoia …

      Post Thumbnail

      Video: Has This Worked Before?

      Another video on my YouTube channel …

      Post Thumbnail

      Homelab: Mac Pro 2013 32GB

      Did I mention that I have recently purchased the …

      Unix Tutorial
      • About
      • Sitemap
      • Tech Stack
      • Tech Stack AI
      © 2025 Unix Tutorial