For security reasons. Is there a specific syntax command that I can type and execute to delete all of my logs in the terminal without destroying any file/program/folder/directories? Is there even a such file or directory that logs every key stroke I type in the terminal? If so, where can I find that?
If you ask why I asked this question?
Because I'm concerned about when logged in as user and when you want to gain root access to change or delete a directory, you have to type in the syntax "su" then the password to login as root.
The thing is, if there IS a such folder or file somewhere that logs your keystrokes in the terminal, I would like to know about it so that I can delete it or clear it at every terminal session without leaving a trace.