Linux Multiple Choice Questions – Best Linux MCQs

Q) What does fork system call return to parent process on success?

  1. 0
  2. 1
  3. -1
  4. Child process id

Answer: 4
Upon successful completion, fork() returns a value of 0 to the child process and returns the process ID of the child process to the parent process. Otherwise, a value of -1 is returned to the parent process, no child process is created.

Q) Which command is used to check Linux version?

  1. uname -a
  2. uname -n
  3. uname -s
  4. kernel

Answer: 1
On terminal type command uname -a will give Linux version.

Q) Which command is used to keep a process running even after logout from shell?

  1. nohup
  2. &
  3. bg
  4. cron

Answer: 1

Q) Command to create file in Linux is ______

  1. touch
  2. cat
  3. echo
  4. All the above

Answer: 4
Command to create file in Linux are cat, touch, and echo.

Q) Linux operating system supports

  1. Multi User
  2. Multi Process
  3. Multi-Tasking
  4. All of the above

Answer: 4

Q) True statement about chown command in Linux is

  1. Creates a thread
  2. Creates a child process
  3. Changes the mode of operation to kernel mode
  4. Changes the users and/or group ownership of each given file

Answer: 4
The command chown, an abbreviation of change owner, is used to change the owner of file, system files and directories.

Related Posts