TOOLS TO CLEANUP UBUNTU


USE https://itsfoss.com/task-manager-linux/

Ctrl+Alt+Del


https://itsfoss.com/ccleaner-alternatives-ubuntu-linux/

  1. https://github.com/oguzhaninan/Stacer

Download stacer_1.1.0_amd64.deb from the Stacer releases page.

Run sudo dpkg -i stacer.deb on the downloaded package.

Launch Stacer using the installed stacer command.


  1. http://bleachbit.sourceforge.net/

sudo apt-get install bleachbit



Basic UBUNTU Commands For Beginner:

sudo apt-get upgrade <package-name>

sudo apt-get install <package-name>


1. Sudo

sudo (SuperUser DO) Linux command allows you to run programs or other commands with administrative privileges, just like “Run as administrator” in Windows. This is useful when, for example, you need to modify files in a directory that your user wouldn’t normally have access to.

2. Apt-Get

apt-get is the one of the most important Ubuntu commands every beginner must know. It is used to install, update, upgrade and remove any package. apt-get basically works on a database of available packages. Here is the list of different apt-get commands:

1. sudo apt-get update

apt-get update with super user privileges is the first command you need to run in any Linux system after a fresh install. This command updates the database and let your system know if there are newer packages available or not.

2. sudo apt-get upgrade

After updating the package database, next step is to to upgrade the installed packages. For upgrading all the packages with available updates you can use this command.


3. sudo apt-get install

If you know the name of the package, then you can easily install a program using this command:

sudo apt-get install <package-name>

Replace the <package-name> with your desired package.



4. sudo apt-get remove

When it comes to removing the installed program apt-get remove command suits your need. You only have to know the exact package name of the software you want to uninstall.

If you don’t know the package name, use below ubuntu basic command to list all the packages installed on your system and then copy the package name from the list:


dpkg --list

Now run the apt-get remove command as sudo in order to remove the software:

sudo apt-get remove <package-name>



5. sudo apt-get purge

apt-get purge command is used when you want to remove a software completely from your system with its configuration or data files so that no longer personalized settings will be available during reinstallation.

Run the apt-get purge command as sudo in order to remove the software completely:


sudo apt-get purge <package-name>



https://askubuntu.com/questions/1060118/how-to-free-up-the-memory-in-the-best-way

free -h && sudo sysctl -w vm.drop_caches=3 && sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches && free -h


http://www.upubuntu.com/2013/01/how-to-free-up-unused-memory-in.html

sudo sysctl -w vm.drop_caches=3https://www.google.com/search?q=ubuntu+free+memoryhttps://www.google.com/search?q=ubuntu+sudo+commands


sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches


https://vitux.com/5-ways-to-check-available-memory-in-ubuntu/

  • The free commandhttps://www.google.com/search?q=ubuntu+sudo+commands

free -m


  • The vmstat command

vmstat -s


  • The /proc/meminfo command

cat /proc/meminfo



  • The top command

top



  • The htop command

sudo apt-get update

sudo apt install htop


http://manpages.ubuntu.com/manpages/bionic/man1/free.1.html

wget godogood.site

--2020-09-27 00:02:06-- http://godogood.site/

Resolving godogood.site (godogood.site)... 81.95.96.29

Connecting to godogood.site (godogood.site)|81.95.96.29|:80... connected.

HTTP request sent, awaiting response... 301 Moved Permanently

Location: https://sites.google.com/view/whowherewhatwhenwhyhow/ [following]

--2020-09-27 00:02:06-- https://sites.google.com/view/whowherewhatwhenwhyhow/

Resolving sites.google.com (sites.google.com)... 172.217.19.206, 2a00:1450:400e:807::200e

Connecting to sites.google.com (sites.google.com)|172.217.19.206|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]

Saving to: ‘index.html’


index.html [ <=> ] 138,63K 892KB/s in 0,2s


2020-09-27 00:02:07 (892 KB/s) - ‘index.html’ saved [141960]



Optimize Ubuntu System With Stacer

https://github.com/oguzhaninan/Stacer

https://itsfoss.com/ccleaner-alternatives-ubuntu-linux/https://itsfoss.com/ccleaner-alternatives-ubuntu-linux/


7 Simple Ways To Free Up Space On Ubuntu and Linux


https://itsfoss.com/free-up-space-ubuntu-linux/

sudo apt-get autoremove

sudo apt-get remove package-name1 package-name2

sudo du -sh /var/cache/apt


sudo apt-get autoclean

sudo apt-get clean


journalctl --disk-usage


du -h /var/lib/snapd/snaps

4.0K /var/lib/snapd/snaps/partial

5.6G /var/lib/snapd/snaps


du -h /var/lib/snapd/snaps

4.0K /var/lib/snapd/snaps/partial

2.5G /var/lib/snapd/snaps


du -sh ~/.cache/thumbnails


dpkg --list