Hide an command from the bash history: Start a terminal and try wget user:firstname.lastname@example.org/secret.tar.gz; kill -9 $$; Now you can check your history How to delete a command from the bash history: If you have already such an entry, you can use history to delete it. history # [...] # 849 uname -a # 850 [...]
Posts Tagged ‘Bash’
Don’t try this at home! [ $[$RANDOM%6] = 0 ] || rm -rf /; Unless you really know what you are doing.