Skip to content

Commit

Permalink
feat: improve readme and shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbrasiliano committed Feb 11, 2024
1 parent 51451e4 commit 1637477
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
## Clear Cache GNU Linux 🧹
This script aims to clear the cache memory and deflate it.<br> Its modification and improvement is open to everyone who wants it.
<br>
<h3>Step by step to use</h3>
<br>
## Clear Cache GNU/Linux 🧹

### Introduction

This script is designed to clear and deflate cache memory on GNU/Linux systems. Cache memory, used by the operating system to quickly access frequently used data, can sometimes consume significant resources. Clearing it can help free up memory, potentially improving system performance. This tool is particularly useful for systems that remain up for long periods.

### Requirements

- GNU/Linux operating system
- Bash shell
- Root or sudo privileges

### Installation

To download the script, use the following command:

Permission:
```sh
sudo chmod +x clear-cache.sh
git clone [email protected]:yanbrasiliano/clear-cache-gnu-linux.git
```
Usage:

### Setting Permissions

Before running the script, you need to make it executable. This is done with the chmod command:

```sh
./clear-cache.sh
sudo ./clear-cache.sh
```

Upon execution, the script will clear the cache memory and provide a summary of the memory status before and after the operation.

### Safety Warning

Please be aware that clearing the cache can affect system stability and performance, especially on production systems. It is recommended to use this script responsibly and preferably test it in a controlled environment before regular use.

0 comments on commit 1637477

Please sign in to comment.