Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hi there, im jus new to linx, and i wanted to know how to clear the history PERMANANTLY of the commands that are stored in the shells.
thanks

I use Mandriva Linux 2007.0, so the file names I provide may vary for other distributions. For example, /etc/profile in Mandriva Linux may be similar in function to /etc/bashrc in other distributions.
If you use the bash command interpreter, and you want to remove the command history for a single specific user, you can empty the bash_history file in that user's home directory (make the file a zero byte file).
If you want to stop bash from storing the command history system wide, you can edit /etc/profile to change the line:
HISTSIZE=1000
to
HISTSIZE=0
then empty the bash_history file for each user on the system.
HTH,
Ernie Registered Linux User 247790
ICQ 41060744

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |