Skip to content

Disable the usage of history using HISTSIZE

I you don’t want the shell to remember the commands you have typed, then disable history all together by setting the HISTSIZE to 0 as shown below.

$ export HISTSIZE=0

Set some other value if you want the shell to remember a few commands may be 5 or 10 etc..

Enjoy using linux.

Dipin Krishna

Written by Dipin Krishna

Senior full-stack engineer — 15 years across Django, Laravel, SwiftUI and the infrastructure underneath. Available for contract work.

Work with me →

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.