history command

Hi,
I want the command which has to tell all the commands used in different terminals of same Unix box.

Command "history" will give the commands used in the same terminal.

Advance thanks for your response.

It depends on the OS, and the shell(s) in use. To get a complete answer you need to tell us the shells in use and your OS: please post the output of --

awk -F':'  '{print $7}'  /etc/passwd | sort -u
uname -a

By default, in each login directory there are "hidden" files with names like .bash_history and .sh_history. If you login as root you can cat each of the files:

find $(awk -F':'  '{printf("%s", $6)}'  /etc/passwd) -name .sh_history -exec cat {} \;

This also can be complicated by the use of the HISTORY environment variable.