Font size
S
M
L
XL
WorksheetsCloudbinary_Linux Quiz
Total questions: 29
Worksheet time: 15mins
Name
Class
Date
1.
1. Unix/Linux Kernel is GUI or CUI/CLI?
a)
B. CUI/CLI
b)
A. GUI
c)
C. Only GUI
d)
D. GUI + CUI/CLI
2.
2. Which of the following runlevel will reboot the system?
a)
D. 6
b)
A. 0
c)
B. 2
d)
C. 4
e)
E. 1
3.
4. What command is used to clear up the command prompt window?
a)
D. cls
b)
A. Clr
c)
B. Clrscr
d)
C. Clrwin
e)
E. Clearit
4.
5. How would you show a list of files and directories that are inside the current directory?
a)
B. Ls
b)
A. List
c)
C. Dir
d)
D. Listfiles
e)
E. Listout
5.
6. ___________ is the command used to create new directory
a)
C. Mkdir
b)
A. Dir
c)
B. Newdir
d)
D. Mk/dir
e)
E. Create dir
6.
7. You want to change the permissions on the file named “fifteen” so that root has all permissions and they are denied all other users. Which command should you use?
a)
A. Chmod fifteen 700
b)
B. Chmod 100 fifteen
c)
C. Chmod 700 fifteen
d)
D. Chmod fifteen 100
e)
E. Chmod 770 fifteen
7.
8. __________ command used to create an empty file.
a)
B. Touch
b)
A. Mtfile
c)
C. File
d)
D. Intouch
e)
E. Create
8.
9. Your PC is unable to boot off the Linux install CD. Which utility should be used to create an installation boot floppy?
a)
A. Fdisk
b)
B. Cp
c)
C. Dd
d)
D. Tar
e)
E. Boot
9.
10. __________ command is used to show the logger or user.
a)
B. Who
b)
A. ?
c)
C. ???
d)
D. No of
e)
E. Which
10.
11. Which is the command used to remove or delete a file without confirmation message?
a)
A. Rm-f
b)
B. Rm
c)
C. Del
d)
D. Remove
e)
E. Delete
11.
12. "cat" is the command used to _________.
a)
D. See the contents of file
b)
A. Change directory
c)
B. Move directory
d)
C. Come out of shell
e)
E. Concatenate file
12.
13. The cat command can perform the same function as which I/O redirection symbol?
a)
A. >
b)
B. <
c)
C. !
d)
D. <<
e)
E. >>
13.
14. If you are installing a software package from source code, the file will typically have which extension?
a)
A. .src
b)
B. .exe
c)
C. .tgz
d)
D. .bff
e)
E. .bin
14.
15. You have written a shell script that must be run as root in order to work properly. What is the most secure way to give a normal user the ability to run this program?
a)
A. Set permissions to 777 on the script
b)
B. Make the user a member of the root group
c)
C. Make the user the owner of the script
d)
D. Set the SUID bit on the script
e)
E. Change the group of the user to same of the owner
15.
16. Which of the following modes of operation exist in vi?
a)
A. Insert
b)
B. Type
c)
C. Search
d)
D. Remove
e)
E. Delete
16.
17. Which of the following commands can be used to change the group owner of a file?
Select any 2 Answers
a)
B. Chmod
b)
E. Chgrp
c)
A. Chown
d)
C. Chattr
e)
D. Attrch
17.
18. Which command to use for complete details of a command on the shell?
a)
C. Man
b)
A. Help
c)
B. ?
d)
D. Hlp
e)
E. Info
18.
19. Which of following will show the first 5 lines of the input file
a)
A. less -5 file
b)
B. head -5 file
c)
C. more -5 file
d)
D. show -5 file
e)
19.
20. What command is used to remove the directory ?
a)
A. rmdir
b)
B. rd
c)
C. remove
d)
D. rdir
e)
20.
21. What command is used with vi editor to delete a single character ?
a)
A. z
b)
B. a
c)
C. y
d)
D. x
e)
21.
22. What command is used to count the total number of lines, words, and characters contained in a file ?
a)
A. count p
b)
B. wc
c)
C. wcount
d)
D. countw
e)
22.
23. What command is used with vi editor to save file and remain in the editing mode ?
a)
A. :q
b)
B. :w
c)
C. q!
d)
D. x
e)
23.
24. What command is used with vi editor to move back to the beginning of a word ?
a)
A. b
b)
B. a
c)
C. e
d)
D. w
e)
Option 5
24.
25. Which of the following is not a Linux distribution?
a)
A. Getian
b)
B. CentOS
c)
C. Fedora
d)
D. Arch Linux
e)
25.
26. Which of these is not an installed components of a Linux system?
a)
A. Software libraries
b)
B. Software control
c)
C. A bootloader
d)
D. An init program
e)
26.
27. What is an example of a package management system?
a)
A. Clutter
b)
B. Digia
c)
C. GNOME
d)
D. Dpkg
e)
27.
28. What is the Linux user interface called?
a)
A. Embedded systems
b)
B. Shell
c)
C. GNOME
d)
D. Digia
e)
28.
29. What kind of software is Linux?
a)
A. Closed
b)
B. Open source
c)
C. Public
d)
D. Proprietary
e)
29.
30. Which of the following directory contains configuration files in Linux?
a)
A. /dev/
b)
B. /etc/
c)
C. /bin/
d)
D. /root/
e)
Reset
