An open API service indexing awesome lists of open source software.

https://github.com/fwxs/sh_cleaner

A bash script to delete the current shell history, clear up swap and cache memory.
https://github.com/fwxs/sh_cleaner

bash-script cleaner linux memory-cache

Last synced: 10 months ago
JSON representation

A bash script to delete the current shell history, clear up swap and cache memory.

Awesome Lists containing this project

README

          

# sh_cleaner.sh

Erase the current shell history, cleans cache memory, dentries, inodes and swap.

## Usage

```
$ bash -i sh_cleaner.sh
```

Or

```
$ ./sh_cleaner.sh
```

Note: The script if the script is run like the first option, it has to be using the interactive switch,
this is so the script can read the *$HISTFILE*, which is not-present in an non-interactive shell
(Like the one on a normal bash script).