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 -S
vi ~/.history
(or vi $histfile
, if you've overridden the default).history -c
history -L
Read 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
tcsh
andcsh
. a thousand curses upon thee. – Trevor Boyd Smith Mar 24 '20 at 17:36