删除Mac终端的远程连接的历史记录

![image.png](https://www.icode9.com/i/ll/?i=img_convert/c542a4756f1456ae4682a971c7914f80.png#clientId=ub90c716f-92db-4&from=paste&height=428&id=u568eab54&margin=[object Object]&name=image.png&originHeight=856&originWidth=844&originalType=binary&ratio=1&size=137791&status=done&style=none&taskId=ub39a2c23-3b4d-414d-a0fa-e49a8c02fe2&width=422)

1.查看连接记录

defaults read  /Users/你的用户名/Library/Preferences/com.apple.Terminal.plist PreviousCommands

2.删除连接记录

defaults delete  /Users/你的用户名/Library/Preferences/com.apple.Terminal.plist PreviousCommands

3.修改连接记录

defaults write  /Users/你的用户名/Library/Preferences/com.apple.Terminal.plist PreviousCommands '("ssh username@101.11.11.11 -p 21","ssh username@101.12.12.12 -p 22")'
上一篇:出现Head https://registry-1.docker.io/v2/library/node/manifests/14-alpine的解决方法


下一篇:3528. 【NOIP2013模拟11.7A组】图书馆(library)