A simple, portable log & history cleaner that also fetches system information
(neofetch-style). It is compatible with any distribution that ships bash.
- Cleans a configurable list of common system log files
- Removes
*historyfiles from the user's home directory - Fetches system info: OS, uptime, hostname, CPU model & usage, RAM usage
- Interactive shell mode plus one-shot command-line flags
- Portable — runs directly from the cloned repository, no install required
bash- Root privileges for log cleaning (
sudo) - Core utilities:
rm,cut,grep,head,touch
git clone https://github.com/ByCh4n/GhostCleaner.git
cd GhostCleaner
sudo make installYou can also run it directly after cloning —
bash GhostCleaner.sh --help— it is a fully portable script.
| Flag | Description |
|---|---|
--clean-logs |
Remove the log files defined in the list (you may need to restart logging services afterwards) |
--clean-history |
Remove files/directories ending with history in your home directory |
--fetch-info |
Print system information |
--shell |
Start the interactive shell |
--banner |
Print the banner |
--no-banner |
Disable the banner for any option |
--help |
Show the help text |
--version |
Show the current version |
GhostCleaner deletes system logs and shell history. It is intended for authorized system maintenance and educational use only — run it only on systems you own or administer. The author accepts no liability for data loss or misuse.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Hüseyin Altıntaş — ByCh4n
- GitHub: @ByCh4n
- LinkedIn: huseyinaltns
- X: @huseyinaltns
Special thanks to @lazypwny751.
Licensed under the MIT license.



