Why can I delete /proc/kcore?
Files in /proc are not really files, they are pseudo files. Kcore can be used to debug the running kernel. The format is similar to a usual core file. You don’t have to worry about this file, it will always exist and doesn’t indicate any problem. If you use ls, the file will appear to have a size close to the amount of kernel memory in the system. But it does not take up any disk space or memory. • How do I find a user’s home directory? There are different ways depending on the situation. If you just want to find the current user’s home directory, you can use the HOME environment variable. Simply use getenv(“HOME”) in your program. You should verify that the returned pointer is not null and that the string it points to is not empty. If the HOME environment variable is not properly set up print an error and abort the program. In emacs and most shells, the current users home is also called “~”. Here is a code example: char *myhome() { char *r=getenv(“HOME”); if ((!r)||((*r) != ‘/’)) { fp