WorksheetsLinux - End of course
Total questions: 22
Worksheet time: 8mins
Name
Class
Date
1.
Linux is
a)
Open source software
b)
Open software
c)
Closed source software
d)
Closed software
2.
Who created Linux?
a)
Guido van Rossum
b)
Bill Gates
c)
Linus Torvalds
d)
Linux Torvalds
3.
Linux uses what type of file system?
a)
NTFS
b)
FAT32
c)
ext4
d)
MS DOS
4.
Everything within Linux is classed as
a)
a File
b)
Code
c)
a Script
d)
a Shell
5.
What shell does CentOS use?
a)
Bourne Shell (sh)
b)
Bourne-Again Shell (bash)
c)
C Shell (cs)
d)
Korn Shell (ksh)
6.
The default prompt for a user is
a)
&
b)
$
c)
>
d)
#
7.
After typing the command ls /bin, the output would be returned on which stream?
a)
STDOUT #1
b)
STDERR #2
c)
STDIN #0
d)
STDOUT #2
8.
The basic format for a command is
a)
command [arguments] [options]
b)
command [options] [arguments]
c)
command [lists] [dictionary]
d)
command [lists] [arguments]
9.
Short options can be joined together to make readability easier e.g. ls -ahl instead of ls -a -h -l
a)
True
b)
False
10.
/home/student/Pictures/New_Folder is an example of
a)
a relative path
b)
a location of a command
c)
an absolute path
d)
how to create a folder
11.
Which glob matches zero or more characters?
a)
*
b)
?
c)
[0]
d)
!
12.
What command would you use to edit the contents of a file?
a)
man filename
b)
filename vi
c)
vi filename
d)
touch filename
13.
Using vi, how do you return to the command mode from insert mode?
a)
press :q
b)
press Esc key
c)
press :wq
d)
press Ctrl + O keys together
14.
Using the cp command will preserve a files metadata
a)
True
b)
False
15.
What symbol would you use to append (add to) to the bottom of a file?
a)
>>
b)
>
c)
<
d)
2>
16.
You want to assign the following permissions to a file, rwxrw----, what command should you use?
a)
chmod 067 filename
b)
chmod 760 filename
c)
chmod 777 filename
d)
chmod 770 filename
17.
There is a file with the following attributes; drwxrwxrwx.2 student student 412 Dec 11 11:10 files, it is a;
a)
Regular file
b)
Symbolic link
c)
Directory
d)
Hard link
18.
What command would you use to remove an alias?
a)
unalias [alias name]
b)
remove [alias name]
c)
delete [alias name]
d)
rm [alias name]
19.
To compress an archive with bzip2 compression, which command would you use?
a)
-J
b)
-j
c)
-b
d)
-z
20.
What command would you use to configure a network?
a)
configip
b)
ipconfig
c)
ls /sys/class/net
d)
ifconfig
21.
What command would you use to change the owner of a file?
a)
chown [filename]
b)
chmod [filename]
c)
chgrp [filename]
d)
chusr [filename]
22.
What command would you use to display the current directory?
a)
ls
b)
pwd
c)
cd
d)
dir
100 %
