LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05: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, 10: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 10:48 AM.
 
Old 05-07-2004, 12:15 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 02: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, 03: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, 04: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, 04: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 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
Open Source Consulting | Domain Registration