Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why can I delete /proc/kcore?

delete kcore PROC
0
Posted

Why can I delete /proc/kcore?

0
10

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123