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.
- Host: GitHub
- URL: https://github.com/fwxs/sh_cleaner
- Owner: fwxs
- Created: 2018-05-04T00:26:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-10T13:42:22.000Z (about 7 years ago)
- Last Synced: 2025-01-24T17:14:12.027Z (about 1 year ago)
- Topics: bash-script, cleaner, linux, memory-cache
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).