Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
history -c
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
th0r
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2008
Posts: 117
Location: 67 65 6e 74 6f 6f

PostPosted: Mon Nov 17, 2008 4:18 pm    Post subject: history -c Reply with quote

when typing
Code:
history -c
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
View user's profile Send private message
spindle
Apprentice
Apprentice


Joined: 01 Dec 2003
Posts: 245

PostPosted: Mon Nov 17, 2008 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
th0r
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2008
Posts: 117
Location: 67 65 6e 74 6f 6f

PostPosted: Mon Nov 17, 2008 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum