wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C3 W2-3

Total questions: 14

Worksheet time: 11mins

Name
Class
Date
1.

In Bash, which of the following commands can you use to view the contents of a document. Check all that apply.

a)

open

b)

cat

c)

less

d)

Dog

2.

In a Linux machine, you have the following files:

apple.txt banana.jpg chocolate.txt orange.txt

What command can you use to search for the word "fruit" in the text files in the above directory? Check all that apply.

a)

grep fruit apple.txt chocolate.txt orange.txt

b)

grep fruit *.txt

c)

find fruit apple.txt chocolate.txt

d)

find fruit apple.txt chocolate.txt orange.txt

3.

In a Linux machine, you want to list through a directory called /home/ben/Documents and search for the word "important" in the filenames in that directory. Which of the following commands can you use?

a)

ls /home/ben/Documents | grep important

b)

ls /home/ben/Documents >> grep important

c)

ls /home/ben/Documents < grep important

d)

ls /home/ben/Documents > grep important

4.

In a Linux machine, you have a file named "types_of_fish.txt" and you want to append the word "trout" to the file contents. Which of the following commands can you use?

a)

echo trout < types_of_fish.txt

b)

echo trout > types_of_fish.txt

c)

echo trout >> types_of_fish.txt

d)

echo trout 2> types_of_fish.txt

5.

What are the basic linux file permissions? Check all that apply.

a)

Read

b)

Write

c)

Modify

d)

Execute

6.

You're given the output of an ls -l of a file in Linux.

ls -l books_file

dr-x-wxr-- 1 phelan cool_group 0 Aug 20 11:10 books_file

Answer the following question: What does the first character of output signify

a)

The file owner is a class D user

b)

books_file is a disk device

c)

The file owner has delete permissions

d)

books_file is a directory

7.

Which special permission bit is used to allow a file to be run as the owner of the file?

a)

SetUID

b)

SetGID

c)

Sticky bit

d)

Super bit

8.

Which special permission bit is used to allow a file to be written to by anyone, but only removable by the owner or root?

a)

SetUID

b)

SetGID

c)

Sticky bit

d)

Read

9.

What's the file extension of a debian package?

a)

rpm

b)

.pkg

c)

.dmg

d)

.deb

10.

What's the difference between an EXE file and an MSI file? Check all that apply.

a)

An MSI file is an executable that can give you complete control over how your application should be installed.

b)

An EXE file is an executable that may have an MSI file as one its resources.

c)

MSI files are used by the Windows Installer to control how your application is installed.

11.

When would you want to use an MSI file to guide the installation of a program, as opposed to an EXE?

a)

When you want the Windows Installer to perform bookkeeping and setup for your application, at the cost of following the rules the Installer requires.

b)

When you want complete, custom control over how the application is installed.

c)

When you want to be able to install your application on Linux as well as Windows

12.

Which of the following file extensions are considered archives in Windows? Check all that apply.

a)

.tar

b)

.exe

c)

.zip

d)

.rar

13.

What's the purpose of a DLL in Windows?

a)

To guide the installation of a package via the Windows Installer

b)

To take up space on your hard drive

c)

To share a package of useful code among programs

14.

Most shared libraries in Windows are managed by which of the following?

a)

Dynamic Linked Libraries, or DLLs

b)

Side-by-side assemblies, or SxS

c)

Left-and-right appendages, or LRAs