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 , it didn't work.
history -d <line_number>
How can I achieve this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I don't use tcsh, but perusing the man page suggests:
vi $histfile, if you've overridden the default).
Read your tcsh man page for the various details.