Home

Linux OS 1000+ MCQ with answer for RBI Assistant

Thursday 9th of March 2023

Sharing is caring

1. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
2. 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
3. Output of 'sort > shoppinglist' is
A. Sorting file but not save in file.
B. Without sorting but save in file.
C. Sorting and save in a file.
D. All of the above.
Answer : C
4. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
5. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
6. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
7. The symbol of wildcard(s) is
A. w
B. `
C. ? *
D. None of the above.
Answer : C
8. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
9. ls j?e - output will be
A. Filenames with 3 charcter
B. Filenames with 4 charcter
C. Filenames with 5 charcter
D. Filenames with 10 charcter
Answer : A
10. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
11. 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
12. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
13. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
14. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
15. A user is logged in on a terminal; root tries to delete the user. Will the user be deleted?
A. Yes
B. No
C.
D.
Answer : B
16. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
17. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
18. 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
19. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
20. A swap partition is actually
A. Primary partition
B. Extended partition
C. Extended memory
D. Virtual memory
Answer : D
21. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
22. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
23. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
24. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
25. 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
26. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
27. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
28. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
29. 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
30. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
31. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
32. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
33. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
34. The --------- command sorts lines of all the named files.
A. desc
B. cp
C. sort
D. ls -l
Answer : C
35. The command for changing the permission relating to files is
A. ls-l
B. head
C. tail
D. chmod
Answer : D
36. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
37. To check if a service is running, the command is
A. Ntsysv
B. setup
C. /etc/rc.d/init.d/service
D. /etc/serice
Answer : A
38. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
39. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
40. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
41. 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
42. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
43. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
44. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
45. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
46. 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
47. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
48. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B
49. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
50. 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

Sharing is caring