CentOS 6.4 - clear / remove history

Quite often when setting up a CentOS server, you may be setting passwords from the command line for your various services, such as mysql. If this is the case, you may want to clear your history with the following command to help prevent someone gaining access to these services in the worst-case scenario where they have managed to ssh in.

history -c

You may also want too look out for/remove these files:


No comments:

Post a Comment