wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

RedHat Academy 8.3

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

This directory houses installed software as well as shared files and read-only program data.

a)

/etc

b)

/usr

c)

/var

d)

/dev

2.

This directory houses files that dynamically change such as databases, caches, and log files.

a)

/var

b)

/usr

c)

/tmp

d)

/etc

3.

The following is an example of a __________

/usr/local/nagios/etc/nagios.cfg

a)

Absolute Path

b)

Relative Path

c)

Symbolic Link

d)

All of these

4.

This type of path takes your current location into consideration.

a)

Child

b)

Parent

c)

Relative

d)

Sibling

5.

If you want a more detailed listing of what is in the current directory, with things like size and date modified, you would run.....

a)

ls -a

b)

ls -l

c)

ls -R

d)

none of these

6.

If I want to copy a folder and it's contents I would use what command?

a)

rmdir

b)

mv

c)

ln -s

d)

cp -r

7.

If I want to remove all files in a directory, but be asked to confirm with each removal, I should run?

a)

rm *

b)

rm -i *

c)

rm -l *

d)

all of these

8.

The following command is making what type of link?

ln tator.txt /tmp/spud.txt

a)

Soft

b)

Symbolic

c)

Hard

d)

direct

9.

Hard links can be created on what?

a)

Regular Files

b)

The same file system

c)

The same storage media

d)

All the above

10.

If I wanted to create a link to a directory I would have to use what type of link?

a)

Soft

b)

Hard

c)

Temp

d)

Redirect

11.

What character can match any consecutive string of characters?

a)

&

b)

?

c)

*

d)

None of these

12.

Which of the commands below will create 5 chapter directories? i.e. chapter1, chapter2, chapter3, chapter4, and chapter5

a)

mkdir c*{1..5}

b)

mkdir chapter[1,5]

c)

mkdir chapter[1..5]

d)

none of these

13.

Which of the following commands will create only directories student1, student3, and student7?

a)

mkdir student{1,3,7}

b)

mkdir student{1..7}

c)

touch student{1,3,7}

d)

none of these

14.

Which of the following creates a variable named STUDENT and assigns the value Tator?

a)

echo $STUDENT

b)

STUDENT=Tator

c)

$STUDENT=Tator

d)

All of these

15.

Given the terminal prompt below and that the variable $USER exists with the value joe, what command will output the phrase "joe is a N$user".

[joe@compy ~]$

a)

echo "${user} is a N$user"

b)

echo "${USER} is a N\$user"

c)

echo "${user} is a "N$user""

d)

echo ${user} is a "N$user"