NEW
Font size
WorksheetsRedHat Academy 8.3
Total questions: 15
Worksheet time: 8mins
This directory houses installed software as well as shared files and read-only program data.
/etc
/usr
/var
/dev
This directory houses files that dynamically change such as databases, caches, and log files.
/var
/usr
/tmp
/etc
The following is an example of a __________
/usr/local/nagios/etc/nagios.cfg
Absolute Path
Relative Path
Symbolic Link
All of these
This type of path takes your current location into consideration.
Child
Parent
Relative
Sibling
If you want a more detailed listing of what is in the current directory, with things like size and date modified, you would run.....
ls -a
ls -l
ls -R
none of these
If I want to copy a folder and it's contents I would use what command?
rmdir
mv
ln -s
cp -r
If I want to remove all files in a directory, but be asked to confirm with each removal, I should run?
rm *
rm -i *
rm -l *
all of these
The following command is making what type of link?
ln tator.txt /tmp/spud.txt
Soft
Symbolic
Hard
direct
Hard links can be created on what?
Regular Files
The same file system
The same storage media
All the above
If I wanted to create a link to a directory I would have to use what type of link?
Soft
Hard
Temp
Redirect
What character can match any consecutive string of characters?
&
?
*
None of these
Which of the commands below will create 5 chapter directories? i.e. chapter1, chapter2, chapter3, chapter4, and chapter5
mkdir c*{1..5}
mkdir chapter[1,5]
mkdir chapter[1..5]
none of these
Which of the following commands will create only directories student1, student3, and student7?
mkdir student{1,3,7}
mkdir student{1..7}
touch student{1,3,7}
none of these
Which of the following creates a variable named STUDENT and assigns the value Tator?
echo $STUDENT
STUDENT=Tator
$STUDENT=Tator
All of these
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 ~]$
echo "${user} is a N$user"
echo "${USER} is a N\$user"
echo "${user} is a "N$user""
echo ${user} is a "N$user"
