Home

1000+ Linux OS MCQ for RRB ALP [Solved]

Thursday 9th of March 2023

Sharing is caring

1. A swap partition is actually
A. Primary partition
B. Extended partition
C. Extended memory
D. Virtual memory
Answer : D
2. User can be assigned to a group while creating the user. The command for this is
A. adduser -g
B. useradd -a
C. aduser -a
D. useradd -g
Answer : A
3. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
4. Password is applied using
A. psswd
B. pssword
C. uerpasswd
D. passwd username
Answer : D
5. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
6. 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
7. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
8. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
9. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
10. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
11. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
12. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
13. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
14. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
15. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
16. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
17. ls - t is used for
A. Sort by name
B. Sort by date
C. Sort by time stamp
D. Sort by alphabetic order
Answer : C
18. 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
19. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
20. The command for changing the permission relating to files is
A. ls-l
B. head
C. tail
D. chmod
Answer : D
21. To search a pattern in a file _________ can be used
A. grep
B. egrep
C. find
D. search
Answer : A
22. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
23. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
24. 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
25. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
26. 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
27. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
28. 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
29. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
30. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
31. 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
32. 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
33. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
34. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
35. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
36. 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
37. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
38. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
39. 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
40. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
41. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
42. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
43. To create multiple directories in one shot ________ is used
A. mkdir
B. mkdir -a
C. mkdir -p
D. mkdir -h
Answer : C
44. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
45. In comm the 2nd column displays
A. Lines unique in the first file
B. Lines unique in the second file
C. Lines common in the both file
D.
Answer : B
46. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
47. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
48. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
49. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
50. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B

Sharing is caring