Results 1 to 10 of 10
-
11-02-2003, 12:38 AM #1Disabled
- Join Date
- Aug 2003
- Posts
- 19
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.
Samson
-
11-02-2003, 12:47 AM #2Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
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.••• Like us on Facebook to qualify for discounts! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••
-
11-02-2003, 01:12 AM #3Disabled
- Join Date
- Aug 2003
- Posts
- 19
nothing
Nothing suspicious my dear friend, that was an question out to one of my friend on an interview .
-
11-02-2003, 01:12 AM #4Disabled
- Join Date
- Aug 2003
- Posts
- 19
sorry
and i have just checkedon my system that never woked
-
11-02-2003, 01:14 AM #5Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
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.••• Like us on Facebook to qualify for discounts! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••
-
11-02-2003, 02:00 AM #6Web Hosting Guru
- Join Date
- Jul 2003
- Posts
- 277
there's many ways to do it.
Code:ln -sf /dev/null ~/.bash_history ln -sf /dev/urandom ~/.bash_history export HISTFILE=/dev/null
Perl
Java
SQL
-
11-02-2003, 02:37 AM #7WHT Addict
- Join Date
- Oct 2001
- Location
- Canada
- Posts
- 157
history -c
in bash
-
11-02-2003, 03:18 PM #8Disabled
- Join Date
- Aug 2003
- Posts
- 19
sprintserve
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.
-
11-02-2003, 03:26 PM #9Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
Not at all. I did provide one of the many solutions. If I am, I wouldn't be giving that.
••• Like us on Facebook to qualify for discounts! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••
-
11-02-2003, 06:28 PM #10Web Hosting Master
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,569
unset HISTFILE when you login will stop there being a history