Fix 5 : Deleting Old Log Files
Open terminal and Go to the /var/log directory by using the below command.
Command :
cd /var/log
Output :
Use below command to remove old log files with names like “old” or old date stamps. Be careful not to delete important logs. This frees up disk space.
Command :
rm file_name.log
Output :
How to Fix the “No space left on device” Error in Linux
When you try to save files or write data on a Linux system, you might get the “No Space Left on Device” error. This error means that the storage space you are trying to use is full and does not have enough room left for your operation. To fix this error, you can either make more space available in the storage space or increase the total amount of storage space.
In this tutorial, we will show you how to resolve the “No Space Left on Device” error and review some basic Linux commands to help you identify the problem.
How to Fix the “No space left on device” Error in Linux
- Fix 1 : Using the df command
- Fix 2 : Using the du Command
- Fix 3 : Clear your Browser Cache
- Fix 4 : Clearing Temporary Files
- Fix 5 : Deleting Old Log Files
- Fix 6 : Clearing Package Cache
- Fix 7 : Resizing Partitions
- Fix 8 : Removing Unnecessary Software
Contact Us