as I understand, most of linux command are user space. but at boot time the system mount its root file system using mount command.

so is this command implemented within the kernel

  • 4
    mount is an executable binary, it calls the mount system call within the kernel. Check man 1 mount and man 2 mount. – ott-- May 15 '15 at 20:01

mount is a command, i.e. a program, i.e. userspace code.

mount is a system call, i.e. kernel code.

The mount command calls the mount system call to do the bulk of its job. In addition, it performs auxiliary tasks such as parsing its command line, consulting /etc/fstab, etc.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.