我不认为我以前见过这个,但是每当我exit
在终端中运行时,我都会得到一个非常奇怪的输出。
这是它的样子:
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Run Code Online (Sandbox Code Playgroud)
当我删除时,~/.bash_sessions
我得到了这个输出。
logout
Saving session...-bash: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.session: No such file or directory
touch: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: No such file or directory
-bash: history: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: cannot create: No such file or directory
...copying shared history...cp: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.history: No such file or directory
...saving history...cat: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: No such file or directory
-bash: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.history: No such file or directory
-bash: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: No such file or directory
truncating history files... …
Run Code Online (Sandbox Code Playgroud) 在我的网络课程中,我了解到路由器将数据发送到网络上的所有计算机,而交换机仅将数据发送到所需的 MAC 地址。
我的问题是,如果设备通过以太网电缆连接到路由器(如 BT-Infinity),数据包是否仍会传输到网络上的所有设备?还是它们只传送到所需的 MAC 地址?