![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with the History command | cleansing_flame | UNIX for Dummies Questions & Answers | 2 | 02-04-2008 08:25 AM |
| Command history in AIX | priya_v111 | Shell Programming and Scripting | 2 | 09-18-2006 11:48 AM |
| History command | akash_wagh | Filesystems, Disks and Memory | 0 | 08-31-2005 02:54 AM |
| command history | vikasdeshmukh | UNIX for Dummies Questions & Answers | 3 | 11-14-2001 01:37 AM |
| History Command | jack | UNIX for Dummies Questions & Answers | 2 | 08-01-2001 10:01 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
There is a file in your home directory called .sh_history. To clear your history, just empty this file
From your home directory: echo "" > .sh_history You can also limit the size of your history file (in KSH) by setting the HISTFILE variable. See this thread |
|
||||
|
Hello everyone,
first of all user google: echo "" > .sh_history i tried your suggested command and yes it does overwrite the .sh_history file with a line. But when i use the command history, it still shows me all of my commands!!! I want to delete the history of commands. Can you suggest something on that? Second of all user tikul: export HISTSIZE=100 yes i wrote that in my .profile file but i still get 500+ commands! Can you comment on that? And finally Mr. Hedensk you asked me to dump my command history with 'history' command. It didn't work as expected. What exactly should i do here? Now this is very likely possible that i might have misunderstood you all and didn't do it as it is supposed to be done. But can you all please try and point out my mistake or a possible explanation for it |