How to delete the cache my Hard-disk is full in centos ?


Hello All,

I have linux server  of centos operating system  my  harddisk  is full with unwanted cache so How can i clear my logs  ?

Addisonjack Supporter Asked on November 17, 2016 in Technology.
Add Comment
1 Answer(s)

Hello Addison,

1)you can check the server space by command df -h

[root@localhost]# df -h

Filesystem Size Used Avail Use% Mounted on
rootfs 20G 19.1G 14G 100% /

2)In the above we can see the disk is full.

3)see the logs of your server.

[root@localhost]# cd /var/log

4) clear the unwanted cache.

[root@localhost]# cd /var/log

[root@localhost log]# ls

Here you will see all your log files .

Delete the unwanted cache using rm -rf command.

[root@localhost]# rm -rf filename.txt

so Remove the unwanted cache and free the disk space .


franklinneal Supporter Answered on November 17, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.