项目作者: fwxs

项目描述 :
A bash script to delete the current shell history, clear up swap and cache memory.
高级语言: Shell
项目地址: git://github.com/fwxs/sh_cleaner.git
创建时间: 2018-05-04T00:26:32Z
项目社区:https://github.com/fwxs/sh_cleaner

开源协议:

下载


sh_cleaner.sh

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

Usage

  1. $ bash -i sh_cleaner.sh

Or

  1. $ ./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).