如何查看的.bash_history的根源在哪里? [英] How to view the bash_history for root?
本文介绍了如何查看的.bash_history的根源在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对亚马逊的AWS EC2 Linux中。我在这里可以查看用户的.bash_history:
I have a linux box on amazon's aws EC2. I can view the user's bash_history here:
/home/ec2-user/.bash_history
然而,当我根:
However when I root in:
sudo -s
我没有得到根本的的.bash_history。我如何查看/找到的.bash_history管理员用户?
I do not get the root's bash_history. How can I view/find the bash_history for the admin user?
谢谢, 布雷特
推荐答案
您可以运行history命令来查看当前用户的历史。
You can run the history command to see the current users history.
这篇关于如何查看的.bash_history的根源在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文