WorksheetsReview 1 Linux
Total questions: 79
Worksheet time: 41mins
Where is most documentation for Linux found?
/usr/file/doc
/user/file/doc
/user/share/doc
/usr/share/doc
Which is not a command help tool?
man
user
help
info
Which option/argument opens help on a command?
command help
command --help
What is the correct command for getting the man page for the 5th category of passwd?
man --5 passwd
man 5 --passwd
What is the correct format to retrieve the info page for mkdir?
What search type finds files in a database of file locations?
find
locate
--locate
--find
A shell command can be described as a series of words, the first of which is usually the:
Command
Option
Argument
(a) to the command, usually indicated by a single letter preceded by a dash (hyphen), modify the action of the command.
Command arguments are also referred to as:
Options
Parameters
Commands
Syntax
What is equivalent to folders in a traditional windows environment?
Directories
Pages
Files
Tree
What is /tmp?
Stores temporary files
Stores small programs
Stores files
Stores hardware
What does /boot do?
Stores files to boot Linux
Stores basic configs
Stores binaries
Stores shared libraries
A data structure that describes a file: ownership, size, location on disk is knows as?
(a)
The relationship that exists between a file and the directory that lists its name is known as?
(a)
The tilde symbol ~ can be used to:
Home directory
Specific User
File Explorer
Windows
What is the visual cue that a variable is environmental?
It begins with $
It is in capital letters
It is lower case
It begins with a number
What is a limitation of a local variable?
For a variable to persist outside of the shell where does it need to be saved?
In a configuration file
What operator is used to set a variable?
What command removes values from variable?
unset
Which is the correct syntax for showing and clearing a variable?
unset greeting
echo $greeting
unset $greeting
echo $greeting
unset greeting
echo greeting
$unset greeting
echo $greeting
What command makes a local variable into an environmental one?
What does PATH=$PATH:new_directory
What command creates a directory with a sub-directory?
What happens if you touch a file that already exists?
How would you create a file called names with the name Bob already in it?
How would you rename the file Bob to Susan?
cd Susan Bob
mv Susan Bob
rm Bob Susan
mv Bob Susan
If you wanted to move file1 into dir3, what command would you use?
What command copies a file called Bob into the directory Susan?
What happens if you try to delete a non-empty directory using rmdir?
What is the safest way to delete a directory interactively?
rm -r
rm -ri
rmdir
rm --force
What does ls file? return?
Any file that starts with "file"
Files with exactly one additional character after "file"
Files that contain a "?"
Any file containing "file"
What is a directory in Linux?
A directory in Linux is a container for files and other directories.
Which filename is valid without escaping characters?
my file.txt
my_file.txt
my\file.txt
"my file.txt"
What does the pwd command do?
What command moves up one directory level?
Which is an absolute path?
Reports
/home/user/Documents
../Reports
./Documents
What does this command do?
cd ../Reports
What does .. represent in Linux?
