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

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'