💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 常用 * [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