I managed to get a really long command in my command history. Is there a way to get rid of it so that the history command does not go wild?
I managed to get a really long command in my command history. Is there
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to documentation I am seeing, you can find out where your history is stored by looking in the file:
For the line:
Then (hopefully) you should be able to edit
~/.tcsh_history(or whatever your actual history file comes out to be) and delete the long command.Reference