DEV Community

HasOne
HasOne

Posted on

1 2

Fast your *NIX machine

Clean Cache and Buffer

It will delete the cache in your local machine or remote machine, sometimes cache takes too much memory.

image

Getting Started

The below command in you command line:

git clone https://github.com/lifeeric/clean-buffer-cache.git

cd clean-buffer-cache

chmod a+x cleanc

sudo mv cleanc /bin

Enter fullscreen mode Exit fullscreen mode

Running the tests

run the below command to clean up:

sudo cleanc
Enter fullscreen mode Exit fullscreen mode

Built With

  • [Bash Script] - Bash Shell script

License

Free to use, modify, change!

Top comments (2)

Collapse
 
solancer profile image
Srinivas Gowda

This won't work on non bash machines, zsh replaced bash on Mac.

Collapse
 
hasone profile image
HasOne

Thanks for noticing the issue! You're right this won't on non *nix machine and Mac still has bash even zsh is the default shell!

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay