• davel [he/him]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    68
    ·
    4 months ago

    It’s a program certainly, but “just a program” is a bit misleading because it places it on the same footing as Doom or cat or an Arduino project. Linux is a ring 0 program, which processors give unique treatment.

    • arthropod_shift@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      4 months ago

      Reminds me of not long after I started using Linux. I thought the kernel was “just a program” like cat and tried to run the kernel from the terminal, only to be disappointed when a new kernel in fact did not start running inside the terminal window.

  • LeFantome@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    4 months ago

    Well, the kernel is not “just a program” in that it is not like the other programs on your system. If it was, you would “just” run it in your shell. The kernel cannot run this way of course because it is not a user mode program.

    That said, if course the kernel is a program in the sense that it is a set of machine instructions that make the hardware do what you want.

    And the kernel is designed to talk to hardware and other programs—to be the bridge between the two. It is not something an end-user interacts with directly.

    • GlowHuddy@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      4 months ago

      Well, the kernel is not “just a program” in that it is not like the other programs on your system. If it was, you would “just” run it in your shell. The kernel cannot run this way of course because it is not a user mode program.

      Actually

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        4 months ago

        Point taken but….

        UML requires:

        1 - extensive support from the host kernel above and beyond what is required to execute for regular programs

        2 - the guest kernel to be specially compiled to be a UML guest

        In other words, even though UML allows a guest Linux kernel to execute as a process on a host Linux kernel, that Linux kernel is not “just a program” like every other user mode application is.

  • dubyakay@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    4 months ago

    On my arch install, all I have is vmlinuz-linux under /boot. How come there’s no further information appended like in the article?

    • ReversalHatchery@beehaw.org
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 months ago

      an arch user doesn’t know that!!

      so, that further information is the kernel’s version number. it helps to keep some older versions. but you didn’t set it up to include the version in the filename.

      és egyébként bojler eladó. processzorra cserélném.

      • dubyakay@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        I’ve used Arch-Installer on my desktop after two failed manual attempts on a laptop. And then dove in head first for the rest.

        Én memóriára cseréltem!

  • Anna@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    4 months ago

    Yeah it’s just as simple as the calculator program I copy pasted in highschool computer class.

    • trolololol@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      I liked both this and the following article.

      Pretty cool seeing everything it takes to have a minimalist Linux to boot, and I finally saw how to get started with strace that I’ve been postponing for like half a year.