var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
some one know how to clear ssh cache ?
Do some one know to clear ssh cache ?
i.e, i tyep a few commands on the server from ssh and need to clear the hostory.
and why do you need to clear the history. That's kind of suspicious.
Well you need to have root on the server, and if you have root, I doubt you will be looking at clearing the history.
But what you need to do is to first logout.
Then login again, and go to the particular user directory and look for a file called .bash_history. Your history would be there, and depending on your settings, the no. of lines stored.
Nothing suspicious my dear friend, that was an question out to one of my friend on an interview .
and i have just checkedon my system that never woked
You create interview questions you have no answers to?
It will work. You must log out from ssh. The current session history doesn't appear till the next time you log in and you must login as root.
there's many ways to do it.
and so forth
ln -sf /dev/null ~/.bash_history
ln -sf /dev/urandom ~/.bash_history
my Dear Friend,
you look like you are tooooo suspicious of anything ?
That question as out to my freind by some other guy in the interbiew and not the one i prepared.
Not at all. I did provide one of the many solutions. If I am, I wouldn't be giving that.
unset HISTFILE when you login will stop there being a history