Unix/Lunux/Linux Mcqs Questions Set 3 Sample Test,Sample questions

Question:
A user can change the default log-in shell using

1.chmod

2.chsh

3.rmsh

4.tchsh

Posted Date:-2021-06-28 15:14:27


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

1.The command results in adding execute permission to the user who ran this command

2.The command results in adding execute permission for the owner of the file

3.The command results in an error since the file is not an executable file

4.The command results in adding execute permission for all users (i.e., user,group & others)

Posted Date:-2021-06-28 15:14:27


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

1./etc/init

2./etc/sched

3./etc/swap

4. /etc/kernel

Posted Date:-2021-06-28 15:14:27


Question:
 Filesystem for CDROM is:

1.Ext2

2.Ext3

3.Isofs

4.Procfs

Posted Date:-2021-06-28 15:14:27


Question:
Bootstrapping is also known as

1.Quick boot

2.Cold boot

3.Hot boot

4.Fast boot

Posted Date:-2021-06-28 15:14:27


Question:
Filesystem for CDROM is:

1.Ext2

2.Ext3

3.Isofs

4.Procfs

Posted Date:-2021-06-28 15:14:27


Question:
Given the command  chmod o-w datafile

1.sets write permission to everyone for datafile

2.sets write permission to others for datafile

3.clears write permission to everyone for datafile

4.clears write permission to others for datafile

Posted Date:-2021-06-28 15:14:27


Question:
How to run a process in the background?

1.&

2. *

3.?

4.|

Posted Date:-2021-06-28 15:14:27


Question:
If a program executing in background attempts to read from STDIN

1.It is terminated

2.Its execution is suspended

3.STDIN is made available to it

4.None of the mentioned

Posted Date:-2021-06-28 15:14:27


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

1.chmod +x project1

2.chmod u+x project1

3.chmod a+x project1

4.chmod U+X project1

Posted Date:-2021-06-28 15:14:27


Question:
nohup is used to

1.automatically hang up the process after logout

2.continue the process after logout

3.create backgroung process

4.manually hang up the process after logout

Posted Date:-2021-06-28 15:14:27


Question:
On Linux, initrd is a file

1.Containing root file-system required during bootup

2.Contains only scripts to be executed during bootup

3.Contains root-file system and drivers required to be preloaded during bootup

4.None of the mentioned

Posted Date:-2021-06-28 15:14:27


Question:
Process information in the current shell can be obtained by using

1.kill

2.bg

3.fg

4.ps

Posted Date:-2021-06-28 15:14:27


Question:
Single user mode shell runs as

1.Admin user

2.Root user

3.Normal user

4.Log user

Posted Date:-2021-06-28 15:14:27


Question:
The command chmod 4777 a.out

1.will set the suid bit of a.out

2.will set the suid bit of a.out only if the command is issued by root

3. is not a valid command

4.will set the sticky bit of a.out

Posted Date:-2021-06-28 15:14:27


Question:
The encrypted password of a user is stored in

1. /etc/shadow

2./etc/enpasswwd

3./etc/.passwd

4./etc/passwd

Posted Date:-2021-06-28 15:14:27


Question:
The process id of init process is:

1.-1

2.0

3.1

4.2

Posted Date:-2021-06-28 15:14:27


Question:
The process of starting up a computer is known as

1.Boot Loading

2.Boot Record

3.Boot Strapping

4.Booting

Posted Date:-2021-06-28 15:14:27


Question:
The shell used for Single user mode shell is:

1.bash

2.Csh

3.ksh

4.sh

Posted Date:-2021-06-28 15:14:27


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

1.KILL

2.TSTP

3.TERM

4.INT

Posted Date:-2021-06-28 15:14:27


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

1./etc/passwd

2./etc/groups

3./etc/login

4./etc/profile

Posted Date:-2021-06-28 15:14:27


Question:
we can change the priority of a running process using

1.nice

2.renice

3.priority cannot be changed for a running process

4.only superuser can change the priority

Posted Date:-2021-06-28 15:14:27


Question:
What does chmod +t do?

1.wrong syntax

2.set effective userid for filename

3.set effective groupid for filename

4.set the sticky bit

Posted Date:-2021-06-28 15:14:27


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

1.the child process becomes defunct

2.the parent process becomes defunct

3.if the parent process does not handle SIGCHLD, the child process becomes a zombie

4.none of the mentioned

Posted Date:-2021-06-28 15:14:27


Question:
Which among the following allows fast file system recovery?

1.Ext2

2.Journaling

3.Caching

4.Sysfs

Posted Date:-2021-06-28 15:14:27


Question:
Which among the following allows fast file system recovery?

1.Ext2

2.Journaling

3.Caching

4.Sysfs

Posted Date:-2021-06-28 15:14:27


Question:
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)

1.su

2.root

3.chroot

4.user

Posted Date:-2021-06-28 15:14:27


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

1.chmod a+r file

2.chmod o+r file

3.chmod u=rw file

4.chmod og-r file

Posted Date:-2021-06-28 15:14:27


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

1.bg

2.fg

3.background

4.forground

Posted Date:-2021-06-28 15:14:27


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

1.mount

2.df

3.du

4.dd

Posted Date:-2021-06-28 15:14:27


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

1.mount

2. df

3.du

4.dd

Posted Date:-2021-06-28 15:14:27


Question:
Which command is used to mount file system read only.

1.mount –a

2.mount –v

3.mount –f

4.mount –r

Posted Date:-2021-06-28 15:14:27


Question:
Which command is used to mount file system read only.

1.mount –a

2.mount –v

3.mount –f

4.mount –r

Posted Date:-2021-06-28 15:14:27


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

1.Sched daemon

2.Swap daemon

3.Init daemon

4.Process daemon

Posted Date:-2021-06-28 15:14:27


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

1./etc/mount

2./etc/fstab

3./etc/inittab

4./etc/boot

Posted Date:-2021-06-28 15:14:27


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

1./etc/mount

2./etc/fstab

3./etc/inittab

4./etc/boot

Posted Date:-2021-06-28 15:14:27


Question:
Which file is read by init to get the default runlevel

1./etc/profile

2./etc/init

3./etc/boot

4./etc/inittab

Posted Date:-2021-06-28 15:14:27


Question:
Which file system has journaling capability?

1.Ext2

2.Ext4

3.Isofs

4.Procfs

Posted Date:-2021-06-28 15:14:27


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

1.Ext3

2.Sysfs

3.Ext4

4.Procfs

Posted Date:-2021-06-28 15:14:27


Question:
Which is loaded into memory when system is booted?

1.Kernel

2.Shell

3.Commands

4.Script

Posted Date:-2021-06-28 15:14:27


Question:
Which is the only partition mounted in Single user mode

1.boot

2.usr

3.root

4.tmp

Posted Date:-2021-06-28 15:14:27


Question:
Which of the following is not a valid run-level

1.s

2.0

3.8

4.1

Posted Date:-2021-06-28 15:14:27


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

1.222

2.111

3.0

4.None of the mentioned

Posted Date:-2021-06-28 15:14:27


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

1.222

2.111

3.0

4.444

Posted Date:-2021-06-28 15:14:27


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

1.status R means running

2.Status S means sleeping

3.Status E means exited

4.Status Z means zombie

Posted Date:-2021-06-28 15:14:27


Question:
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?

1.chmod 046 textfile

2.chmod 640 textfile

3.chmod 310 textfile

4.chmod rw r nil textfile

Posted Date:-2021-06-28 15:14:27


Question:
Which signal is sent by the command kill -9  ?

1.INT

2.TERM

3.KILL

4.STOP

Posted Date:-2021-06-28 15:14:27


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

1.—x–x-wx

2.-rw-rw-r–

3.-r-xr-x-r–

4.-rw-rw-r–

Posted Date:-2021-06-28 15:14:27


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

1.Root

2.Boot

3.Mount-point

4.Partition

Posted Date:-2021-06-28 15:14:27


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

1.Root

2.Boot

3.Mount-point

4.Partition

Posted Date:-2021-06-28 15:14:27


More MCQS

  1. Unix MCQS Set 1
  2. Unix MCQS Set 2
  3. Unix MCQS Set 3
  4. Unix MCQS Set 4
  5. Linux Mcqs Questions Set 1
  6. Linux Mcqs Questions Set 2
  7. Linux Mcqs Questions Set 3
  8. Linux Mcqs Questions Set 4
  9. Linux Mcqs Questions Set 5
  10. Linux Mcqs Questions Set 6
  11. Linux Mcqs Questions Set 7
  12. Linux Mcqs Questions Set 8
  13. Linux Mcqs Questions Set 9
  14. Linux Mcqs Questions Set 10
  15. Linux Mcqs Questions Set 11
  16. Linux Mcqs Questions Set 12
  17. Linux Mcqs Questions Set 13
  18. Linux Mcqs Questions Set 14
  19. Unix MCQ Set 01
  20. Unix MCQ Set 02
  21. UNIX SYSTEM Mcq
  22. Unix MCQ
  23. Linux MCQ Unit 1
  24. Linux MCQ Unit 2
  25. LINUX MCQ QUESTIONS AND ANSWER
  26. Linux File Permissions MCQ Questions Answers
  27. Linux Administration MCQ question and answer
  28. Linux MCQ QUESTIONS AND ANSWER
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!