[root@localhost ~]# grep systemd /proc/*/cmdline
Binary file /proc/1/cmdline matches
Binary file /proc/461/cmdline matches
Binary file /proc/478/cmdline matches
Binary file /proc/602/cmdline matches
Binary file /proc/610/cmdline matches
Binary file /proc/self/cmdline matches
Solution: Delete the NUL character.
cat /proc/*/cmdline | tr -d '\000' | grep systemd
I took the Linux Kernel fundamentals course on Linkedin Learning during the Week of Learning. I went through the first three lessons. The last two deals with compiling the kernel. I skipped them as I had done some kernel compiling years ago and I won’t be doing them anytime soon.
These are my notes from the lessons:
I have always thought Virtual Filesystems like /proc and /sys are stored in memory, they are not. They are generated when asked for it. Each file and directory has associated function in the kernel that generates the content when you ask.