我在理解我的情况时遇到了困难,到目前为止,谷歌并不是很有帮助。
我开始了一个 bash 后台工作:
ping google.com &
Run Code Online (Sandbox Code Playgroud)
首先我得到进程 ID,然后 Bash 将 stdout 打印到屏幕上。
user@host:~$ ping google.com &
[1] 14004
user@host:~$ PING google.com (173.194.44.66) 56(84) bytes of data.
64 bytes from ham02s14-in-f2.1e100.net (173.194.44.66): icmp_seq=1 ttl=54 time=26.3 ms
64 bytes from ham02s14-in-f2.1e100.net (173.194.44.66): icmp_seq=2 ttl=54 time=27.4 ms
64 bytes from ham02s14-in-f2.1e100.net (173.194.44.66): icmp_seq=3 ttl=54 time=29.2 ms
...
Run Code Online (Sandbox Code Playgroud)
这与我今天阅读的所有内容相矛盾。我有一个标准的 Debian Jessie 设置,运行 GNU bash,版本 4.3.30(1)-release (x86_64-pc-linux-gnu)。
任何人都可以向我解释这一点吗?谢谢。