Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 3

Choose a topic to test your knowledge and improve your Unix/Lunux skills

With a umask value of 112, what is the default permission assigned to newly created regular file?





✅ Correct Answer: 4

Which command is used to assign read-write permission to the owner?





✅ Correct Answer: 3

Given the command chmod o-w datafile





✅ Correct Answer: 4

Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?





✅ Correct Answer: 2

If you are a root user, how can you grand execute permission only for the owner of the file project1?





✅ Correct Answer: 2

A user executes the following command successfully: $ chmod +x file1.txt Which of the following is true of the output of this command?





✅ Correct Answer: 4

What does chmod +t do?





✅ Correct Answer: 4

Which of the following umask settings doesn’t allow execute permission to be set by default on directory files





✅ Correct Answer: 3

Which of the following umask settings allow execute permission to be set by default on regular files





✅ Correct Answer: 4

The command chmod 4777 a.out





✅ Correct Answer: 1

Which command is used to check filesystem usage in a system?





✅ Correct Answer: 2

Which among the following allows fast file system recovery?





✅ Correct Answer: 2

Which filesystem can be used to change certain kernel parameters at runtime using sysctl command?





✅ Correct Answer: 4

Filesystem for CDROM is:





✅ Correct Answer: 3

Which file system has journaling capability?





✅ Correct Answer: 2

Which file contains the filesystems to be automatically mounted during boot?





✅ Correct Answer: 2

__ is a directory (which should exist), on which to mount the file system?





✅ Correct Answer: 3

Which command is used to mount file system read only.





✅ Correct Answer: 4

Which command is used to check filesystem usage in a system?





✅ Correct Answer: 2

 Filesystem for CDROM is:





✅ Correct Answer: 3

___ is a directory (which should exist), on which to mount the file system?





✅ Correct Answer: 3

Which of the following is not a valid run-level





✅ Correct Answer: 3

On Linux, initrd is a file





✅ Correct Answer: 3

Which is loaded into memory when system is booted?





✅ Correct Answer: 1

The process of starting up a computer is known as





✅ Correct Answer: 3

Bootstrapping is also known as





✅ Correct Answer: 2

The shell used for Single user mode shell is:





✅ Correct Answer: 4

Single user mode shell runs as





✅ Correct Answer: 2

Which is the only partition mounted in Single user mode





✅ Correct Answer: 3

Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is needed.





✅ Correct Answer: 2

At the end of kernel bootstrap, which process is started?





✅ Correct Answer: 1

The process id of init process is:





✅ Correct Answer: 3

Which file is read by init to get the default runlevel





✅ Correct Answer: 4

If a program executing in background attempts to read from STDIN





✅ Correct Answer: 2

Which command is used to bring the background process to forground?





✅ Correct Answer: 2

How to run a process in the background?





✅ Correct Answer: 1

Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters)





✅ Correct Answer: 1

Process information in the current shell can be obtained by using





✅ Correct Answer: 4

Which signal is sent by the command kill -9  ?





✅ Correct Answer: 3

Which of the following values for STAT column of ps command is not true:





✅ Correct Answer: 3

When a child process exits before the parent process exits, which of the following is true:





✅ Correct Answer: 3

The signal sent to a process when the Ctrl-C key is pressed is





✅ Correct Answer: 4

we can change the priority of a running process using





✅ Correct Answer: 2

nohup is used to





✅ Correct Answer: 2

Users Primary Group id is listed in which file, at the time of creation of the user (On a standard Unix system)





✅ Correct Answer: 1

The encrypted password of a user is stored in





✅ Correct Answer: 1

A user can change the default log-in shell using





✅ Correct Answer: 2