-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51451e4
commit 1637477
Showing
1 changed file
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |