Finding Shell Commands and Answers in a Fedora Core 4 System

Click For Summary
SUMMARY

To view all shell commands executed in a Fedora Core 4 system, users can utilize the command cat ~/.bash_history | less. This command displays the history of commands typed by the user in the Bash shell. For users connecting via SSH to another machine, the same command applies, but it will only show the command history for the user on that specific machine. Linux does not natively save complete terminal outputs, including system responses, unless specific logging mechanisms are implemented.

PREREQUISITES
  • Familiarity with Fedora Core 4 operating system
  • Understanding of Bash shell commands
  • Basic knowledge of SSH connections
  • Awareness of Linux file systems and user directories
NEXT STEPS
  • Explore advanced Bash history management techniques
  • Learn about configuring SSH session logging
  • Investigate tools for capturing terminal output, such as script command
  • Research logging frameworks for Linux to capture complete session data
USEFUL FOR

System administrators, Linux users, and anyone interested in auditing shell command usage and understanding session logging in Fedora Core 4.

Omid
Messages
181
Reaction score
0
Hi,
My friend has installed a Fedoracore4 on my machine. I want to see what he has done with it to understand how. Is there any way see all the shell commands he has typed with all the answers the machine has given him?
 
Computer science news on Phys.org
cat ~/.bash_history |less

If your using another shell it would be different.
 
dduardo said:
cat ~/.bash_history |less

If your using another shell it would be different.


It works. Thanks a lot.
2 more questions:
1. what if I connect with SSH to another machine.
2. the history only gives the commands my friend has typed, just to make sure, is there any way to see the system responses to them? I mean, does linux save all shells (completely, everything shown on screen) ??
 

Similar threads

Replies
3
Views
13K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 16 ·
Replies
16
Views
8K
  • · Replies 3 ·
Replies
3
Views
740
Replies
2
Views
2K
Replies
13
Views
1K
  • · Replies 104 ·
4
Replies
104
Views
8K
Replies
6
Views
10K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 20 ·
Replies
20
Views
5K