Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-18-2007, 02:59 AM   #1
Registered: Jan 2007
Posts: 39

Rep: Reputation: 15
Get log of all history

Hi again. I want to view all log of user root in solaris or linux, beginning from installation of system
How can i do it?
I type history, it gives me only part of commands

Old 01-18-2007, 03:07 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
If you restrict access for administrators to using sudo, then all root commands are logged, provided you disallow something like "sudo /bin/bash" and plug up holes such as entering "!/bin/bash" in vim.

The bash history is not intended to be a full log. It may fold repeated commands into one, and it is limited to a certain number of lines. It is a convenience, used to recall previous commands, such as using [ctrl]-R or !-5.
Old 01-18-2007, 05:28 AM   #3
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
Thank you very much!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download history and copy history? inverted.gravity Linux - Newbie 1 02-21-2006 01:31 PM
Internet Log / History netpicker9 Linux - Software 1 06-07-2005 09:39 AM
Need to log users command history FatSteve Linux - Security 2 07-22-2004 07:25 PM
tcsh history log twantrd Linux - General 3 06-25-2003 07:57 AM
command history log??? granny Linux - Newbie 3 02-11-2003 05:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration