Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On FreeBSD 8.1 how to view history command for user root. Detail many sesion , because user root use by 3 people system admin.

Thank all

share|improve this question
up vote 0 down vote accepted

You don't do that. What you do is setup sudo and then make your 3 admins log in using normal user accounts and use sudo to run commands as root. Sudo when correctly set up will allow your admins to carry out their duties and will log all relevant information to the system log files for later auditing.

share|improve this answer
well you can still see by pressing the up arrow to get previous command. – Anarko_Bizounours Aug 3 '11 at 7:16
@Anarko_Bizounours: That will only show the last N commands where N is controlled by HISTFILESIZE or HISTSIZE. Also is you put a space before your command it doesn't get stored in the command history. – Iain Aug 3 '11 at 7:23
Wasn't sure, thanks for confirming that Iain – Anarko_Bizounours Aug 3 '11 at 8:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.