Clear command history in Linux
In bash, to clear the command history, execute the following command
$ rm -rf
To disable history of the commands execute the following command
$ ln -s /dev/null
The above command in essence redirects all history data to /dev/null file, which is a dummy file (NULL file).
--
Alternatively, you can set the HISTSIZE variable in /etc/profile to 0.