Skip to main content

Linux command: history

For illustration: History

history - recall lines of previous typed input

$ history

List the last 5 commands

$ history -5

Clear history

$ history -c

The last command

$ !!
$ !-1

The command line N

$ !N

Tips and Tricks

Put a space before command to prevent it from being saved in history

Related commands

Powershell: Get-History

Popular posts from this blog

Online Learning: Free to Learn, Learn to Free

Photo Credit:  Gerd Altmann - pixabay.com Just make time to keep learning, practicing, and sharing.

Install the .NET Core Windows Server Hosting bundle

Remember to schedule in advance, since IIS must be reset after installing .NET Core Windows Server Hosting bundle.

Windows command: icacls

Icacls is a command-line utility that can be used to display or modify discretionary access control lists (DACLs) on specified files, and apply stored DACLs to files in specified directories.