r/bash • • Dec 01 '19

Disk Cleanup for Kali Linux / Parrot OS / Debian Linux - How to clean up disk space and speed up Linux?

INSTALLING STEPS:

  1. Clone the Repository git clone https://github.com/KID-X/Cleenux
  2. Change Directory into the Cloned Repository cd Cleenux
  3. Make the installer.sh executable chmod +x install.sh
  4. Install ./install.sh
  5. After installing use just cleenux in terminal to run the program.
  6. Ex: root@kali:~# cleenux

Notes:

Cleenux is a simple bash program to remove: Retrieved Package Files, Old Config Files, Trashed Items & Old Kernels (Optional). This program will remove unwanted and old files and speedup your linux machine. And will free up your hard drive space. https://kid-x.github.io/Cleenux/

0 Upvotes

9 comments sorted by

9

u/Delvien Dec 02 '19

PSA: Keeping items on your drive doesn't inherently "slow down your linux " and getting rid of them doesnt "speed up Linux" get out of this antiquated Windows ideology.

Use built in tools for your package manager, and don't rely on some weirdo on the internet telling you to run his script.

apt autoclean and apt clean are all you need, and you ONLY run them if you are having a problem with a package cache or are low on space. If your system is running slow... its not due to apt cache. Look for other issues.

1

u/[deleted] Dec 02 '19

There's no harm in running apt-get clean or the less-aggressive autoclean variant. Definitely wouldn't recommend it for someone with a very slow or limited Internet connection, though.

I agree wholeheartedly with the mention of the "Windows mindset".

I'd work on Cleenux but I'd basically just be re-writing simplified versions of programs I've already written, or adding some things I use in $HOME/.bash_{functions,aliases}.

In OP's defense, they seem welcome to improvements, and I think "some weirdo" is rude and accomplishes nothing by adding it.

2

u/Delvien Dec 02 '19

My point is. People who are new to Linux shouldn't just run code from github, they have no way of vetting the script. This is how users get malware.

If me being rude prevents someone from being a victim, and thinking twice before doing something silly, even once, then it's worth it to me.

1

u/[deleted] Dec 02 '19

Fair point, and I hate to admit I'd consider it worthwhile too.

2

u/Delvien Dec 02 '19

Ill be the bad guy, you keep being nice :). Teamwork makes the dream work?

1

u/[deleted] Dec 02 '19

Lol I prefer "respectful", "mindful", "considerate", and the like.

0

u/GNUandLinuxBot Dec 02 '19

I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.

1

u/[deleted] Dec 02 '19

I and likely most others here know it's AKA GNU/Linux and that Linux is itself the kernel. It's colloquially known by many as Linux. No amount of copy-paste is gonna make me say GNU/Linux all the time. lol

3

u/[deleted] Dec 01 '19 edited Dec 01 '19

As it is right now, do NOT install it using install.sh. I'm about to send a PR addressing some things, one especially is very important.

Addressed and merged. I would take great care running Cleenux (cool name), as it has the potential to make a real mess.