LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-11-2003, 04:09 PM   #1
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Rep: Reputation: 15
command history log???


Is there a command history log for all users? Basically I want to find out what commands users are issuing, similiarly as if I were to type in history in my shell, it would show me my last x commands. I want a way that if I am root, I can view others histories as well. Thanks for the help!
 
Old 02-11-2003, 04:18 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
When you're root, you can view all the history files. As far as I know there's no single command to do this.
 
Old 02-11-2003, 04:18 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
look at /home/username/.bash_history, assuming they're using bash
 
Old 02-11-2003, 05:03 PM   #4
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
yeah, I knew that. Just looking for an easier way without having to write a script that parses everyone's home dir. Thanks for the response though. It is appreciated
 
  


Reply


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
History command amer_58 Linux - General 5 06-24-2005 01:26 PM
Internet Log / History netpicker9 Linux - Software 1 06-07-2005 09:39 AM
Command history? King4lex Linux - Newbie 4 09-03-2004 09:35 PM
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


All times are GMT -5. The time now is 06:46 AM.

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