LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-07-2004, 06:47 AM   #1
joulupukki
LQ Newbie
 
Registered: May 2004
Posts: 11

Rep: Reputation: 0
show all terminal typed commands


what is the command to show all terminals commands, so it would have every users and every terminals and ssh connections commands? and what was command to take in use stopped process, and what is command for listing the stopped processes?
 
Old 05-07-2004, 11:46 AM   #2
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
you mean commands that have been issued, or all possible commands?

you can use "history" (or read ~/.bash_history ?) for the former. the latter, try looking here:

http://www.allcommands.com/index.php...%2520list.html

to view processes, try running "ps aux"

Last edited by Genesee; 05-07-2004 at 11:48 AM.
 
Old 05-07-2004, 01:15 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
what is the command to show all terminals commands, so it would have every users and every terminals and ssh connections commands?
Can I ask why you want to do this?
 
Old 05-10-2004, 03:30 AM   #4
joulupukki
LQ Newbie
 
Registered: May 2004
Posts: 11

Original Poster
Rep: Reputation: 0
to know what people have been doing on specific server at on one glance.
 
Old 05-10-2004, 04:56 AM   #5
robkg
LQ Newbie
 
Registered: May 2004
Posts: 18

Rep: Reputation: 0
You mean builtin-in-shell commands?
just read the bash manpage
 
Old 05-10-2004, 05:33 AM   #6
joulupukki
LQ Newbie
 
Registered: May 2004
Posts: 11

Original Poster
Rep: Reputation: 0
no, i mean the ones all users have typed to shell, example history, but it doesnt seem to show all commands different users have typed.
 
Old 05-10-2004, 05:42 AM   #7
robkg
LQ Newbie
 
Registered: May 2004
Posts: 18

Rep: Reputation: 0
That's always stored in ~/.bash_history, but there's a limit to it, as defined by the env variable $HISTSIZE, that defaults to 500 lines
There's no simple other way to track all commands, and it's always possible for users to `unset HISTFILE`. There are patches for bash I believe that log everything that is input to bash.. IIRC something like BOFH bash patch ;-).
 
  


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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 11:34 AM
Linuxconf didn't show up when i typed in the terminal and problems with samba ineth Red Hat 1 10-22-2005 05:44 PM
configuring terminal so not to show full path harshnoise SUSE / openSUSE 2 02-26-2005 08:42 AM
how to see typed commands with date? vaoc Linux - Security 1 08-06-2004 02:43 PM
Bash: show on terminal and save to file shadowhunter Linux - Newbie 5 12-13-2003 05:49 PM


All times are GMT -5. The time now is 10:30 PM.

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