Hide commands from bash history

Written by
Date: 2014-09-26 06:55:20 00:00

How to enter commands in Linux bash and be sure they are not logged.

Q. How can I enter commands in bash shell on Linux and make sure my commands are not registered or recorded in history logging

A. There is an easy way to do just that.

Enter a space before the command you want to be ommited from bash history.

[space]ls /tmp

With that space before the command, it will not be saved in bash history