how would one goabout deleting the list of previosuly used commands (by pressing up arrow) in the terminal, is there a command to do that or is it a cache type thing? ne wase it bothers me that when i quit and reopen the terminal their still their
reh said:I'm going to guess that you're using the bash shell. It keeps a file in your home directory called ".bash_history" that stores all of your previous commands. You could delete this file. There may also be an option in bash's config file to disable this feature.
Personally, I use the zsh shell, which does not store command histories after a logout (by default anyway).
rock6079 said:thanks, do u know ifthe tcsh shell is similar to the bash shell in that way or how it saves previous commands ?
broken_keyboard said:I think the file name is ~/.history for tcsh. You can type "man tcsh" to see all the various options - maybe you can turn history off altogether?
reh said:I'm going to guess that you're using the bash shell. It keeps a file in your home directory called ".bash_history" that stores all of your previous commands. You could delete this file. There may also be an option in bash's config file to disable this feature.
Personally, I use the zsh shell, which does not store command histories after a logout (by default anyway).
Like kyle said, you can try out each shell by just typing it's name in the terminal (bash, csh, sh, tcsh, & zsh come with panther). The cleanest way to change your default shell is to type "chsh" (stands for change shell) and then type the path of the new shell. If you're switching to bash, it would be /bin/bashMacFan26 said:this is sort of off topic, but is there an easy way to switch between bash and tsch? or is that even something that is useful to do?
reh said:You said you're using tcsh? The defualt history file for tcsh is ".tcsh_history". Do you have that file? Better yet, unless there's stuff you'd rather people not see, could you list the contents of your home folder using "ls -a" and post it here? (curious what shell configuration files may be lurking)
thanks kyle and rehreh said:Like kyle said, you can try out each shell by just typing it's name in the terminal (bash, csh, sh, tcsh, & zsh come with panther).