View previous topic :: View next topic |
Author |
Message |
th0r Tux's lil' helper
Joined: 06 Feb 2008 Posts: 117 Location: 67 65 6e 74 6f 6f
|
Posted: Mon Nov 17, 2008 4:18 pm Post subject: history -c |
|
|
when typing into the shell it is supposed to clear your shell history. Which it does for my current shell tab. But I noticed that if I make a new tab in my shell I can us the up arrow and still see my history after I have input history -c. Is this is supposed to be this way or is there a more secure way to really all typed commands into shell? I somehow haven't really noticed this until now. |
|
Back to top |
|
|
spindle Apprentice
Joined: 01 Dec 2003 Posts: 245
|
Posted: Mon Nov 17, 2008 5:06 pm Post subject: |
|
|
That just clears history in memory. You can do 'history -w' after 'history -c' to write it out to disk immediately rather than waiting for when the shell exists. |
|
Back to top |
|
|
th0r Tux's lil' helper
Joined: 06 Feb 2008 Posts: 117 Location: 67 65 6e 74 6f 6f
|
Posted: Mon Nov 17, 2008 5:11 pm Post subject: |
|
|
Ah I see. Yeah I thought that shell history got wrote to a file, So that will clear the file or disk. |
|
Back to top |
|
|
|