Skip to content

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

Notifications You must be signed in to change notification settings

fwxs/sh_cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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).

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages