Home

Linux OS MCQ Solved Paper for UPSC CDS

Thursday 9th of March 2023

Sharing is caring

1. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
2. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
3. What will be the output of the command 'tail sample'?
A. Last 10 lines of the file.
B. Last 15 lines of the file
C. Last 5 lines of the file
D. First 10 lines of file.
Answer : A
4. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
5. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
6. chmod 632 stuff means
A. Gives read & write& execute permission for owner write & execute for group read permission for other.
B. Gives read & write permission for owner write & execute for group Write permission for other.
C. Gives write permission for owner write & execute for group Write permission for other.
D. Gives read & write permission for owner read & execute for group Write permission for other.
Answer : B
7. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
8. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
9. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
10. An user can login without password
A. True
B. False
C.
D.
Answer : A
11. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
12. The symbol of wildcard(s) is
A. w
B. `
C. ? *
D. None of the above.
Answer : C
13. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
14. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
15. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
16. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
17. Password is applied using
A. psswd
B. pssword
C. uerpasswd
D. passwd username
Answer : D
18. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
19. The X-Window system in Linux is a
A. program development environment
B. graphical user interface
C. tool to connect Linux with Windows
D. none of the above
Answer : B
20. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
21. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
22. The main function of grep is
A. look for numeric
B. look for string match a regular expression..
C. look for string without regular expression.
D. None of them.
Answer : B
23. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
24. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
25. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
26. To give all permission to a file to all users the command is
all of the above

A. chmod a+777 file
B. chmod a+rwx file
C. chmod ugo+7 file
D. none of the above
Answer : B
27. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
28. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
29. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
30. To delete an user along with its home directory, the command is
A. userdel -d username
B. userdel -D username
C. userdel -r username
D. userdel -R username
Answer : C
31. cat > abc, if the requested file does not exist, error will be given by
A. Kernel
B. Shell
C. root
D. None of the above
Answer : A
32. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
33. To remove a directory which is not empty ____ is used
A. rmdir
B. rmdir -r
C. rm -r
D. rm
Answer : C
34. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
35. What is the relation between grep & egrep
A. egrap is a mother of grep.
B. Egrap is totally difference
C. Egrap is a another version of grep.
D. None of these.
Answer : C
36. mkdir - p is used for
A. Making directory under parent directory.
B. Making directory non existing parent directory.
C. Specified the mode of directory.
D. None of the above
Answer : B
37. What is the meaning of chmod 444 stuf?
A. Gives all user write permission.
B. Gives all user execute permission.
C. Gives all user read permission.
D. All of the above.
Answer : C
38. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
39. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
40. Output of the command 'wc <filename>' is
A. Show only line
B. Show only word.
C. Show alphabet, line, word.
D. Show only file name.
Answer : C
41. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B
42. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
43. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
44. If there is any problem with the command, the error is given by
A. Kernel
B. Shell
C. root
D. None of the above
Answer : B
45. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
46. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
47. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
48. Which command is used to see the system date?
A. Time
B. Date
C. Month
D. None of these
Answer : B
49. sort file, will sort the contents of the file and the effect will be reflected in the file
A. True
B. False
C.
D.
Answer : B
50. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B

Sharing is caring