Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: bash history log, how to get it to record root commands< Next Oldest | Next Newest >
Big_Pc_Man Offline





Group: Members
Posts: 86
Joined: July 2007
Posted: Sep. 02 2008,16:37 QUOTE

DSL 4.4.4 version. Is there a way to get bash to record command history in the .bash_history log for the root user? Maybe I'm just looking in the wrong place for the history log?

--------------
Big_Pc_Man
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 02 2008,17:12 QUOTE

Did you check in /root ?
Back to top
Profile PM 
Big_Pc_Man Offline





Group: Members
Posts: 86
Joined: July 2007
Posted: Sep. 02 2008,17:17 QUOTE

yes. The history file contains only the text "exit".

--------------
Big_Pc_Man
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 02 2008,17:31 QUOTE

Yea, you'd get that if you, for example, opened a terminal and just send "exit"
Back to top
Profile PM 
Big_Pc_Man Offline





Group: Members
Posts: 86
Joined: July 2007
Posted: Sep. 02 2008,23:43 QUOTE

OK, you did such a great job on the emelfm question maybe you can help explain how to get the bash history file to work.

Actually what I am trying to do is simply print the terminal screen to a file such that all commands and responses for an active session are captured in a file. There's probably a simple way to do this, I just don't know how.


--------------
Big_Pc_Man
Back to top
Profile PM 
7 replies since Sep. 02 2008,16:37 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: bash history log

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code