1
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-07-03 11:33:54 +01:00
notes/content/shell/stop-saving-history.md

26 lines
241 B
Markdown
Raw Normal View History

2022-11-02 11:32:24 +00:00
---
title: Stop saving bash history
emoji: 🤔
tags:
- Shell
modified: 2022-11-02
---
## Disable history for a given session
```shell
$ unset HISTFILE
```
or:
```shell
$ set +o history
```
## Clear history
```shell
$ history -c
```