Editing stored Terminal commands
I have very small query being a newbie in linux world. I have Redhat 9 with Gnome.
I can switch to terminal (shell) using Ctrl_Alt+(F1-F4). or using terminal in Gnome. I can type any command over there which can bring me result or not. I can nevigate my old command, even after restarting system using arrow keys. It means, my all these commands are being stored in some File.
I just want path to that file and the controller of that file so that i can control the number of commands. :p
You are probably using bash as a shell so "man bash" should help you to get to know a lot about the shell, but here are some pointers:
In your home dir there is a hidden file named: .bash_history that file contains your command history.
Setting the enviroment variable HISTFILESIZE=<size> should truncate the file if it gets too big.
Again, this information is found in the bash manpage. You might also want to take a look at /etc/profile, /etc/bashrc, ~/.bashrc, ~/.bash_profile
I hope this will help you,
|All times are GMT -5. The time now is 04:12 AM.|