首先让我在下面展示一个例子。我怎样才能看到所有的bash历史?
在shell(1)中,我执行了以下命令。
$ ping google.com
PING google.com (74.125.235.164) 56(84) bytes of data.
64 bytes from nrt19s12-in-f4.1e100.net (74.125.235.164): icmp_seq=1 ttl=54 time=2.85 ms
64 bytes from nrt19s12-in-f4.1e100.net (74.125.235.164): icmp_seq=2 ttl=54 time=3.42 ms
然后,打开另一个shell(2)并查看历史记录。
$ history
.
.
.
8720 exit
8721 clear
8722 history
在这种情况下,shell不能看到外壳(1)执行的历史,但我希望看到在每个shell所有bash的历史。
所以我的问题是我怎么能看到所有的bash历史?有人知道如何破解?
非常感谢您提前!