Is terminal output history stored anywhere on a system?
by Arct1c_f0x from LinuxQuestions.org on (#5EG4A)
Hi
I know that a history of terminal commands are stored and can be accessed, for example, by using an exclamation point. '!!' when used as a command runs the previous command and n! runs the nth command in the history.
What I'm interested in knowing is whether there's a history of terminal output that is stored anywhere on the computer?
For instance: Imagine there's an encrypted file called passwords.txt.crypt
if you could cat the decrypted contents of that file through grep "passwordline" to print the one specific password you were looking for to stdout, would this be a security risk?
Thanks, hope I explained that well


I know that a history of terminal commands are stored and can be accessed, for example, by using an exclamation point. '!!' when used as a command runs the previous command and n! runs the nth command in the history.
What I'm interested in knowing is whether there's a history of terminal output that is stored anywhere on the computer?
For instance: Imagine there's an encrypted file called passwords.txt.crypt
if you could cat the decrypted contents of that file through grep "passwordline" to print the one specific password you were looking for to stdout, would this be a security risk?
Thanks, hope I explained that well