Do you mean shell commands? The
last command can show you when a user logged in and from where. There is no standard facility for recording individual commands, although some audit systems for doing this exist. What to recommend depends somewhat on which platform you are on. If I recall correctly even
The GNU Accounting Utilities offer the basic tools for this.