https://bbs.deepin.org/post/174810 history -c清除的是内存中保留的当前交互式shell会话的命令历史,但是shell脚本执行过程会fork一个非交互式 ...
Featured Collection
Popular Events
sudo vim cls
#! /bin/bash
#
printf "\033c"
history -c
保存退出
为什么每次我执行cls都会只清屏不清除历史输入啊。。?求教大佬