Re: I need help understanding /proc/sys/kernel/core_pattern

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/12/19 3:18 AM, Jeremy Nicoll - ml fedora wrote:
On 2019-08-12 02:01, Sam Varshavchik wrote:
ToddAndMargo via users writes:

What does this do?

     # echo core > /proc/sys/kernel/core_pattern

This will, instead, create a plain file called
"core" in the executable's directory.

Excuse my interruption, but why would that create a file named
'core'?   Why doesn't it just place 'core' in the named file?

That's not a real file. It's part of a virtual filesystem called "procfs" which gives a filesystem interface to the kernel internal settings. If you run "mount" you will see a lot of mountpoints that have types that aren't real filesystems. In fact, most of them are not. (I was surprised by that when I checked right now.) /proc and /sys are the top-level mountpoints for most of them. One thing that shows they are not real files is that everything shows a size of 0 and the modification date is now.

# cat /proc/sys/kernel/core_pattern
|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e

but

# ls -l /proc/sys/kernel/core_pattern
-rw-r--r--. 1 root root 0 Aug 12 12:51 /proc/sys/kernel/core_pattern
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux