如何查看的.bash_history的根源在哪里?根源、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然而,当...

我对亚马逊的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.

阅读全文

相关推荐

最新文章