Finding Shell Commands and Answers in a Fedora Core 4 System

AI Thread Summary
To view the shell commands executed on a Fedora Core 4 system, the command "cat ~/.bash_history | less" can be used, which displays the history of commands typed in the Bash shell. If a different shell is in use, the method to access command history may vary. When connecting to another machine via SSH, the command history will pertain only to that session and will not include commands from the local machine. Linux does not natively save complete shell sessions with all system responses displayed on the screen. While command history is recorded, the output or responses from those commands are not saved by default. Users seeking to capture both commands and their outputs may need to utilize terminal session logging tools or configure their shell to log outputs explicitly.
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 alot.
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) ??
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top