![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| History command | akash_wagh | Filesystems, Disks and Memory | 2 | 01-22-2009 12:51 PM |
| Help with the History command | cleansing_flame | UNIX for Dummies Questions & Answers | 2 | 02-04-2008 12:25 PM |
| Command history in AIX | priya_v111 | Shell Programming and Scripting | 2 | 09-18-2006 02:48 PM |
| command history | vikasdeshmukh | UNIX for Dummies Questions & Answers | 3 | 11-14-2001 05:37 AM |
| History Command | jack | UNIX for Dummies Questions & Answers | 2 | 08-01-2001 01:01 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
|||||
|
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 . Thank you all and have a good one ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|