Linux delete files to clear the cache

I believe that many experienced developers often test call you clear the cache such a thing.

Then we want to how clear it?

I. First, make sure you want to clear the cache in which directory, and then switch to the directory, for example, I now know my cache directory under newerp this directory, as shown

 

 Second, then execute the command rm -rf Runtime

 

 rm -rf command What does it mean?

rm -rf delete all files in this directory

Note that this is a dangerous command, it is removed you followed all directory files, so make sure that you delete can not remove

If you are unsure, you can add -i The system will go through to confirm with you whether each file is deleted, if you confirm the deletion press y + enter key to confirm the deletion.

Third, rebuild the file

At this time we have not only put the files in this directory is deleted along with the Runtime files have been deleted, so we must rebuild a file

Create a file command execution

 

 Fourth, to give permission to the file reconstruction

Rebuild the file, not the file permissions equal to the dummy, so we need to give it gives read, write, and execute permissions

 

 OK this time, we considered cleared the cache!

Guess you like

Origin www.cnblogs.com/xiaojying/p/12208566.html