Home

1000+ Linux OS Multiple Choice Question Answer [Solved]

Thursday 9th of March 2023

Sharing is caring

1. 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
2. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
3. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
4. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
5. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
6. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
7. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
8. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
9. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
10. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
11. 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
12. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B
13. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
14. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
15. Password is applied using
A. psswd
B. pssword
C. uerpasswd
D. passwd username
Answer : D
16. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
17. To remove a directory which is not empty ____ is used
A. rmdir
B. rmdir -r
C. rm -r
D. rm
Answer : C
18. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
19. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
20. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
21. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
22. 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
23. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
24. 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
25. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
26. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
27. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
28. The --------- command sorts lines of all the named files.
A. desc
B. cp
C. sort
D. ls -l
Answer : C
29. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B
30. To create multiple directories in one shot ________ is used
A. mkdir
B. mkdir -a
C. mkdir -p
D. mkdir -h
Answer : C
31. 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
32. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
33. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
34. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
35. 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
36. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
37. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
38. To search a pattern in a file _________ can be used
A. grep
B. egrep
C. find
D. search
Answer : A
39. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
40. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
41. A swap partition is actually
A. Primary partition
B. Extended partition
C. Extended memory
D. Virtual memory
Answer : D
42. 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
43. 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
44. 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
45. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
46. 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
47. 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
48. 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
49. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
50. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C

Sharing is caring