LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   show all terminal typed commands (https://www.linuxquestions.org/questions/linux-newbie-8/show-all-terminal-typed-commands-178864/)

joulupukki 05-07-2004 05:47 AM

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?

Genesee 05-07-2004 10:46 AM

:confused: 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"

unSpawn 05-07-2004 12:15 PM

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?

joulupukki 05-10-2004 02:30 AM

to know what people have been doing on specific server at on one glance.

robkg 05-10-2004 03:56 AM

You mean builtin-in-shell commands?
just read the bash manpage

joulupukki 05-10-2004 04:33 AM

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.

robkg 05-10-2004 04:42 AM

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 ;-).


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