tag:blogger.com,1999:blog-8032022811235182759.post2787851461609225716..comments2024-03-23T08:25:23.254-07:00Comments on Linux Commando: Hide command from bash command line historyPeter Leunghttp://www.blogger.com/profile/05589860210899238688noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8032022811235182759.post-88574930186489865772015-01-30T04:49:03.314-08:002015-01-30T04:49:03.314-08:00or first switsh to 'sh', this 'sh'...or first switsh to 'sh', this 'sh' shell does not use a history file:<br /><br />bash$ sh<br />$ mysql -u root -pMyPassword<br />$ exit<br />bash$ <br /><br />However, the calling of 'sh' is being recorded in the ~/.bash_history file<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8032022811235182759.post-66065622196222577382014-07-31T06:30:16.426-07:002014-07-31T06:30:16.426-07:00This is incorrect in a test on CentOS 5. Does not ...This is incorrect in a test on CentOS 5. Does not work.<br /><br />What does work is unsetting the history file.<br /><br />unset HISTFILE<br /><br />This command itself is also conviently not recorded.<br /><br />This command works Linux & Solaris bash shells. It may work in others.Anonymousnoreply@blogger.com