| « openvz Server refused to allocate pty solution | Using vzdump snapshot to backup without downtime » |
bash_history not working in VE (virtual environment) of openvz
Add the following line to file /root/.bashrc
HISTFILE=/root/.bash_history
Now, .bash_history will be created and filled!
1 comment
Comment from: DrBao [Visitor]
Better add this to /etc/bashrc or analog(depends on OS template of VE), because it works for every user in VZ, not only root.
It becomes important, ih ssh inside of VE is used or few other users added and have shell (tomcat, postgres - for example)
It becomes important, ih ssh inside of VE is used or few other users added and have shell (tomcat, postgres - for example)
2009-08-11 @ 10:20