R4RIN
Articles
Java 8
MCQS
Unix/Lunux MCQ Quiz Hub
Linux Mcqs Questions Set 3
Choose a topic to test your knowledge and improve your Unix/Lunux skills
1. With a umask value of 112, what is the default permission assigned to newly created regular file?
—x–x-wx
-rw-rw-r–
-r-xr-x-r–
-rw-rw-r–
2. Which command is used to assign read-write permission to the owner?
chmod a+r file
chmod o+r file
chmod u=rw file
chmod og-r file
3. Given the command chmod o-w datafile
sets write permission to everyone for datafile
sets write permission to others for datafile
clears write permission to everyone for datafile
clears write permission to others for datafile
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?
chmod 046 textfile
chmod 640 textfile
chmod 310 textfile
chmod rw r nil textfile
5. If you are a root user, how can you grand execute permission only for the owner of the file project1?
chmod +x project1
chmod u+x project1
chmod a+x project1
chmod U+X project1
6. A user executes the following command successfully: $ chmod +x file1.txt Which of the following is true of the output of this command?
The command results in adding execute permission to the user who ran this command
The command results in adding execute permission for the owner of the file
The command results in an error since the file is not an executable file
The command results in adding execute permission for all users (i.e., user,group & others)
7. What does chmod +t do?
wrong syntax
set effective userid for filename
set effective groupid for filename
set the sticky bit
8. Which of the following umask settings doesn’t allow execute permission to be set by default on directory files
222
111
0
444
9. Which of the following umask settings allow execute permission to be set by default on regular files
222
111
0
None of the mentioned
10. The command chmod 4777 a.out
will set the suid bit of a.out
will set the suid bit of a.out only if the command is issued by root
is not a valid command
will set the sticky bit of a.out
11. Which command is used to check filesystem usage in a system?
mount
df
du
dd
12. Which among the following allows fast file system recovery?
Ext2
Journaling
Caching
Sysfs
13. Which filesystem can be used to change certain kernel parameters at runtime using sysctl command?
Ext3
Sysfs
Ext4
Procfs
14. Filesystem for CDROM is:
Ext2
Ext3
Isofs
Procfs
15. Which file system has journaling capability?
Ext2
Ext4
Isofs
Procfs
16. Which file contains the filesystems to be automatically mounted during boot?
/etc/mount
/etc/fstab
/etc/inittab
/etc/boot
17. __ is a directory (which should exist), on which to mount the file system?
Root
Boot
Mount-point
Partition
18. Which command is used to mount file system read only.
mount –a
mount –v
mount –f
mount –r
19. Which command is used to check filesystem usage in a system?
mount
df
du
dd
20. Filesystem for CDROM is:
Ext2
Ext3
Isofs
Procfs
21. ___ is a directory (which should exist), on which to mount the file system?
Root
Boot
Mount-point
Partition
22. Which of the following is not a valid run-level
s
0
8
1
23. On Linux, initrd is a file
Containing root file-system required during bootup
Contains only scripts to be executed during bootup
Contains root-file system and drivers required to be preloaded during bootup
None of the mentioned
24. Which is loaded into memory when system is booted?
Kernel
Shell
Commands
Script
25. The process of starting up a computer is known as
Boot Loading
Boot Record
Boot Strapping
Booting
26. Bootstrapping is also known as
Quick boot
Cold boot
Hot boot
Fast boot
27. The shell used for Single user mode shell is:
bash
Csh
ksh
sh
28. Single user mode shell runs as
Admin user
Root user
Normal user
Log user
29. Which is the only partition mounted in Single user mode
boot
usr
root
tmp
30. Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is needed.
Sched daemon
Swap daemon
Init daemon
Process daemon
31. At the end of kernel bootstrap, which process is started?
/etc/init
/etc/sched
/etc/swap
/etc/kernel
32. The process id of init process is:
-1
0
1
2
33. Which file is read by init to get the default runlevel
/etc/profile
/etc/init
/etc/boot
/etc/inittab
34. If a program executing in background attempts to read from STDIN
It is terminated
Its execution is suspended
STDIN is made available to it
None of the mentioned
35. Which command is used to bring the background process to forground?
bg
fg
background
forground
36. How to run a process in the background?
&
*
?
|
37. 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)
su
root
chroot
user
38. Process information in the current shell can be obtained by using
kill
bg
fg
ps
39. Which signal is sent by the command kill -9 ?
INT
TERM
KILL
STOP
40. Which of the following values for STAT column of ps command is not true:
status R means running
Status S means sleeping
Status E means exited
Status Z means zombie
41. When a child process exits before the parent process exits, which of the following is true:
the child process becomes defunct
the parent process becomes defunct
if the parent process does not handle SIGCHLD, the child process becomes a zombie
none of the mentioned
42. The signal sent to a process when the Ctrl-C key is pressed is
KILL
TSTP
TERM
INT
43. we can change the priority of a running process using
nice
renice
priority cannot be changed for a running process
only superuser can change the priority
44. nohup is used to
automatically hang up the process after logout
continue the process after logout
create backgroung process
manually hang up the process after logout
45. Users Primary Group id is listed in which file, at the time of creation of the user (On a standard Unix system)
/etc/passwd
/etc/groups
/etc/login
/etc/profile
46. The encrypted password of a user is stored in
/etc/shadow
/etc/enpasswwd
/etc/.passwd
/etc/passwd
47. A user can change the default log-in shell using
chmod
chsh
rmsh
tchsh
Submit