I'm trying to remove a single command from TCSH history on RHEL 6, but couldn't find a way. I tried out the following Bash command as in [1], it didn't work.
history -d <line_number>
How can I achieve this?
I'm trying to remove a single command from TCSH history on RHEL 6, but couldn't find a way. I tried out the following Bash command as in [1], it didn't work.
history -d <line_number>
How can I achieve this?
I don't use tcsh, but perusing the man page suggests:
history -Svi ~/.history (or vi $histfile, if you've overridden the default).history -chistory -LRead your tcsh man page for the various details.
101 14:40 history -L 102 14:39 echo command here 104 14:39 history -S -- where I manually edited out command #103 from ~/.history.
– Jeff Schaller
Jun 20 '18 at 18:43
tcshandcsh. a thousand curses upon thee. – Trevor Boyd Smith Mar 24 '20 at 17:36