Ok chaps, a simple but longtime not answered question: Where is the history on Linux Systems. Easy, you say, ".bash_history", but then is it ? From different terminals I get different history strings, and I'd like to know, where these are stored. I asked
---------- Original Message ---------------------------------- From: Dan Am <suse@dertext.de> Date: Tue, 29 Apr 2003 10:01:24 +0200 this at different times,
nobody really seemed to know. Another try: Who knows ?
tia Dan
Dan, On my system (Suse 8.1) each user has their own .bash.history file. It's located in the user's home directory, and it's a hidden file, so if you're looking for it using Kongueror make sure to turn on "Show Hidden Files" in the "View" menu. Also, you usually need root access to view the file. Matt
-- buddha 2.4.20-4GB 9:58am up 23:23, 7 users,
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Thursday 01 January 1970 01:00, Matt Stamm wrote:
---------- Original Message ---------------------------------- From: Dan Am <suse@dertext.de> Date: Tue, 29 Apr 2003 10:01:24 +0200
Ok chaps, a simple but longtime not answered question: Where is the history on Linux Systems. Easy, you
say, ".bash_history",
but then is it ? From different terminals I get
different history strings, and
I'd like to know, where these are stored. I asked
this at different times,
nobody really seemed to know. Another try: Who knows ?
tia Dan
Dan,
On my system (Suse 8.1) each user has their own .bash.history file. It's located in the user's home directory, and it's a hidden file, so if you're looking for it using Kongueror make sure to turn on "Show Hidden Files" in the "View" menu. Also, you usually need root access to view the file.
You should only need root access to see other users' files, I believe. Now that just wouldn't be ethical, would it? :-( You ought to be able to read your own OK - if not, I imagine pressing the up arrow won't yield any useful result. Of course if you want to see root's history, then you should be root ... Cheers Fergus
Matt
-- buddha 2.4.20-4GB 9:58am up 23:23, 7 users,
-- Check the headers for your unsubscription address For additional commands send e-mail to
suse-linux-e-help@suse.com
Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Fergus Wilde Chetham's Library Long Millgate Manchester M3 1SB Tel: +44 161 834 7961 Fax: +44 161 839 5797 http://www.chethams.org.uk
Am Donnerstag, 1. Januar 1970 01:00 schrieb Matt Stamm:
On my system (Suse 8.1) each user has their own .bash.history file. ...but what if the same user (namely root) logs in twice, or from different locations.
-dan -- buddha 2.4.20-4GB 3:41pm up 1 day 5:06, 7
On Tue, 29 Apr 2003, Dan Am wrote:
Am Donnerstag, 1. Januar 1970 01:00 schrieb Matt Stamm:
On my system (Suse 8.1) each user has their own .bash.history file. ...but what if the same user (namely root) logs in twice, or from different locations.
I believe it's not written to the history file until logout. To force it you can type history -w to write it from on terminal and history -r to read it into another termina. -- (o< //\ Powered by SuSE Linux V_/_ Virusproof. Crashproof. 9:50am up 18 days, 16:00, 35 users, load average: 1.28, 1.36, 1.51 processes 1626447
participants (4)
-
Dan Am
-
Fergus Wilde
-
Matt Stamm
-
Robt. Miller