Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Well, have ssh'd from my mac to my linux computer, and now I wonder how on earth do I send a kill signal like you do in windows = ctrl-c?
I tried every combination with macs keyboard layout + C and it wont work..
什么是退出或注销?为我工作以将任何外壳程序退出到远程计算机。
在 Linux(和大多数其他 Unix 变体,包括 Mac)中,退出 shell 的组合键是Ctrl+ D。这表示输入(EOF)的结束,导致 shell(和 ssh 连接)退出。
Ctrl+C向活动程序发送特定信号。它会导致大多数程序退出,但有些程序(如shell)在获得它时会做一些稍微不同的事情,例如shell 将取消当前命令行并移动到下一个命令行。