LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot remove kcore (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-remove-kcore-422932/)

dain 03-08-2006 03:57 PM

Cannot remove kcore
 
I'm using Mandrake 10.1. Something created /proc/kcore. It is ro and I can't remove it even after I chmod 777 kcore. It's pretty big, how do I get rid of it?

TIA

unSpawn 03-08-2006 04:38 PM

how do I get rid of it?
You don't and you don't need to bother with or delete files in /proc.
proc is a virtual filesystem and doesn't take up any space even if tools say it does.

jonaskoelker 03-08-2006 04:50 PM

to OP: /proc/kcore is a file "representing" all your ram--so that's why it's so big. Similarly, you have other what you might want to think of as magic file or "pseudo-files", for instance /dev/hda "represents" your entire hard disk. So, if you opened the file in your favorite text editor (do NOT do this--it's just hypothetical), you'd be able to edit the data on your hard disk directly. Also, you have other useful magic files: /dev/zero consists of infinitely many instances of character number zero (which is not "0"; similarly character number 65 is "A" and not "65")--one might conceivable "copy" data from /dev/zero to /dev/hda to blank out the entire hard disk.

I hope this enlightens you more than it confuses you.


All times are GMT -5. The time now is 04:52 PM.