how would i clear my commandline history
at logon/logoff/startup time ??
it tried this : editing my /etc/rc.d/rc.local file like this
i know this is for system startup
Code:
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
#clear user history ~/.bash_history
echo "" > ~/.bash_history
#clear root history /root/.bash_history
echo "" > /root/.bash_history
but when i reboot, the history still remains.