linux info

how do i remove the contents of "history" which stores all the commands typed at the command prompt? If I remove the contents at the console the history file is still not removed at the command prompt.So how do i remove the contents at both the places.....command prompt and console too..Thanks a lot for your help..!
snandurAsked:
Who is Participating?
 
UnixGuruConnect With a Mentor Commented:
There is a file that is created in each users home directory that holds this information.  i.e .bash_history, or .history.  You can remove or clear the file which will remove the contents of it and the commands you typed.  You can create a sybolic link such as:
ln -sf .history/or .bash_history > /dev/null so each time you logout the history of commands you typed will be removed.
0
All Courses

From novice to tech pro — start learning today.