Contents
How remove unwanted files in Kali Linux?
How do I remove unnecessary files from Kali Linux?
- sudo apt-get clean. to clear the cache file.
- sudo apt-get autoclean. to clear the cache file automatically.
- sudo apt-get autoremove. To clean file / dependencies that are not needed from the system.
How do I free up space on Kali Linux?
Freeing disk space on your Linux server
- Get to the root of your machine by running cd /
- Run sudo du -h –max-depth=1.
- Note which directories are using a lot of disk space.
- cd into one of the big directories.
- Run ls -l to see which files are using a lot of space. Delete any you don’t need.
- Repeat steps 2 to 5.