Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing History

Status
Not open for further replies.
Mar 14, 2001
48
US
How to clear history in korn shell?
 
there should be a file .sh_history in the users home directory, just clear it.

# cd /home/jsmith
# > .sh_history

 
In HP-UX 11.0 it's not working. I've issued the command
>.sh_history
when I type history it's still shows all the previous commands.
 
make sure you have write permissions for the file and that there is a space between the redirect and the filename.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top