mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-17 06:09:04 +00:00
26 lines
241 B
Markdown
26 lines
241 B
Markdown
|
---
|
||
|
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
|
||
|
```
|