How do I change the .bash_history file location?
Posted
by
Brian Graham
on Super User
See other posts from Super User
or by Brian Graham
Published on 2014-05-30T19:53:53Z
Indexed on
2014/05/30
21:36 UTC
Read the original article
Hit count: 239
I'm running CentOS 6.x and want to move the .bash_history to a different location.
The home directories of my users are (because I run a VPS) in /var/www/vhost/<domain>.<tld>
which is FTP accessible (and it should be).
Because of this, I have changed the AuthorizedKeysFile
for SSH connections out of the normal ~/.ssh/authorized_keys
since FTP connections would easily be able to locate them.
At the same time I want to move the .bash_history
file to /home/%u/.bash_history
where %u
is the current user.
© Super User or respective owner