Home

IIFT - Linux OS 1000+ MCQ [Solved] PDF Download

Thursday 9th of March 2023

Sharing is caring

1. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
2. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
3. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
4. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
5. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
6. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
7. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
8. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
9. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
10. Password is applied using
A. psswd
B. pssword
C. uerpasswd
D. passwd username
Answer : D
11. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
12. 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
13. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
14. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
15. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
16. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
17. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
18. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
19. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
20. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
21. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
22. 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
23. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
24. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
25. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
26. 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
27. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
28. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
29. 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
30. 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
31. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
32. 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
33. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
34. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
35. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
36. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
37. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
38. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
39. 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
40. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
41. 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
42. 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
43. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
44. Shell is a
A. Program
B. Hardware
C. Account
D. None of the above
Answer : A
45. 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
46. 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
47. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
48. An user can login without password
A. True
B. False
C.
D.
Answer : A
49. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
50. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A

Sharing is caring