多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 常用 * [x] 删除history记录 history命令详细情况 ``` $ help history Options: -c clear the history list by deleting all of the entries -d offset delete the history entry at position OFFSET. -a append history lines from this session to the history file -n read all history lines not already read from the history file and append them to the history list -r read the history file and append the contents to the history list -w write the current history to the history file -p perform history expansion on each ARG and display the result without storing it in the history list -s append the ARGs to the history list as a single entry ``` * `history -c` 命令,即清除所有历史记录,这种比较粗暴,慎用。 * 部分删除操作 * `vim ~/.bash_history`。该文件即为历史记录存储文件,我们随意修改 * 修改后再次 `history `查看,发现并没有变化。原因:缓存。执行:`history -r ` * 重新打开shell * 读取历史文件并将其内容添加到历史记录中,即重置文件里的内容到内存中,完成修改! * [x] fdsf