Deck 3: Exploring Linux Filesystems

Full screen (f)
exit full mode
Question
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

A) 1-4
B) [1-4]
C) [1234]
D) [1,2,3,4]
Use Space or
up arrow
down arrow
to flip the card.
Question
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

A) $
B) x
C) Ctrl+g
D) P
Question
To display the contents of a text file called data, what command should be used?

A) disp data
B) ls data
C) ls -l data
D) cat data
Question
When issuing the ls -F command, what special character indicates a linked file?

A) @
B) *
C) &
D) =
Question
Which character(s) below represent extended regular expression metacharacter(s)?

A) .
B) [...]
C) ^
D) {}
Question
Linux uses a logical directory tree to organize files into different folders.
Question
Pressing the Esc key at the prompt while using the more command displays a help screen.
Question
What command can be issued to confirm what directory you are in at a command line prompt?

A) dir
B) pwd
C) whereami
D) ld
Question
To display a text file in reverse order, what command should be used?​

A) ​cat
B) ​tac
C) ​tee
D) ​sed
Question
What command can be used to display the last five lines of a text file?

A) end -5
B) head -5
C) stop -5
D) tail -5
Question
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?

A) cd ..
B) cd ../..
C) /home/joe
D) cd ./..
Question
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?

A) Alt
B) Tab
C) Ctrl
D) Esc
Question
It is acceptable to use shell metacharacters when naming files.
Question
Which switch below can be added to the ls command to show a list of files and their type?

A) -T
B) -L
C) -F
D) -l
Question
What metacharacter can be used to refer to the current user's home directory?

A) ˜
B) @
C) &
D) #
Question
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.
Question
The LISP artificial intelligence programming language can be used with which text editor below?

A) Kedit editor
B) Joe editor
C) Emacs editor
D) Nedit editor
Question
The more command should not be used on binary files.
Question
Select the command below that can be used to provide a long listing for each file in a directory:

A) ls -T
B) ls -L
C) ls -F
D) ls -l
Question
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

A) *
B) ?
C) +
D) ^
Question
Explain the difference between an absolute and a relative pathname, and why one might be used over the other.
Question
List at least three differences between wildcard metacharacters and regular expressions.
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A temporary connection that sends information from one command or process in memory to another; it can also be represented by a file on the filesystem.
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The files that represent the same data as other files.
Question
What command is most effective at identifying different types of files?​

A) stat
B) ​ls -l
C) ​ll
D) ​file
Question
What is the disadvantage of using the cat command to display a very large text file? How can you get around this problem?
Question
In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file's _________________________.
Question
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
Question
Describe the difference between named pipe files and socket files.​
Question
Explain why the vi editor is called a bimodal editor.
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The full pathname to a certain file or directory starting from the root directory.
Question
In vi, using command mode, what ​series of key presses below will cause the line on which the cursor is on to be deleted?

A) ​X
B) ​dd
C) ​yw
D) ​d
Question
Text wildcards used to ease the searching of specific text information are called _________________________.
Question
In what mode does the vi editor open by default?​

A) ​append mode
B) ​insert mode
C) ​overview mode
D) ​command mode
Question
Filenames that start with a period, such as .file, are referred to as _____________ files.
Question
In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?​

A) ​dd
B) ​Ctrl+d
C) ​Ctrl+k
D) ​Ctrl+a
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A variant of the grep command used to search files for patterns, using extended regular expressions.
Question
Due to the fact that the * character can be used to match all ​characters in a filename, or all files in a directory, it is referred to as a ____________ metacharacter.
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A Linux command that searches files for patterns of characters using regular expression metacharacters. The command name is short for "global regular expression print."
Question
​At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes?

A) ​:q
B) ​:q!
C) ​:exit
D) ​:!
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A file that can be executed by the Linux operating system to run in memory as a process and perform a useful function.
Question
Select the two ​filename extensions that are associated with C++ programming language source code files:

A) ​.c
B) ​.cc
C) ​.cpp
D) ​.c++
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The special metacharacters used to match patterns of text within text files; they are commonly used by text tool commands, including grep.
Question
What two regular expression characters can be used to match the characters at the beginning or end of a line, respectively?

A) ​.
B) ​^
C) ​$
D) ​+
Question
Select below the command and the associated alias available on most Linux systems that displays ​a long listing for each file in a directory?

A) ​ls -F
B) ​lf
C) ​ls -l
D) ​ll
Question
When displaying a large text file, what two commands provide the ability to show text in a page by page fashion?​

A) more
B) paged​
C) less
D) ​buffer
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The joining of text together to make one larger whole. In Linux, words and strings of text are joined together to form a displayed file.
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A variant of the grep command that does not allow the use of regular expressions.
Question
What two characters below should not be used in filenames?​

A) ​_
B) ​.
C) ​$
D) ​*
Question
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
One of the two modes in vi; it allows a user to perform any available text-editing task that is not related to inserting text into the document.​
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: Exploring Linux Filesystems
1
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

A) 1-4
B) [1-4]
C) [1234]
D) [1,2,3,4]
B
2
Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

A) $
B) x
C) Ctrl+g
D) P
C
3
To display the contents of a text file called data, what command should be used?

A) disp data
B) ls data
C) ls -l data
D) cat data
D
4
When issuing the ls -F command, what special character indicates a linked file?

A) @
B) *
C) &
D) =
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Which character(s) below represent extended regular expression metacharacter(s)?

A) .
B) [...]
C) ^
D) {}
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Linux uses a logical directory tree to organize files into different folders.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Pressing the Esc key at the prompt while using the more command displays a help screen.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
What command can be issued to confirm what directory you are in at a command line prompt?

A) dir
B) pwd
C) whereami
D) ld
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
To display a text file in reverse order, what command should be used?​

A) ​cat
B) ​tac
C) ​tee
D) ​sed
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
What command can be used to display the last five lines of a text file?

A) end -5
B) head -5
C) stop -5
D) tail -5
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?

A) cd ..
B) cd ../..
C) /home/joe
D) cd ./..
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?

A) Alt
B) Tab
C) Ctrl
D) Esc
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
It is acceptable to use shell metacharacters when naming files.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Which switch below can be added to the ls command to show a list of files and their type?

A) -T
B) -L
C) -F
D) -l
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
What metacharacter can be used to refer to the current user's home directory?

A) ˜
B) @
C) &
D) #
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
The LISP artificial intelligence programming language can be used with which text editor below?

A) Kedit editor
B) Joe editor
C) Emacs editor
D) Nedit editor
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
The more command should not be used on binary files.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Select the command below that can be used to provide a long listing for each file in a directory:

A) ls -T
B) ls -L
C) ls -F
D) ls -l
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

A) *
B) ?
C) +
D) ^
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
Explain the difference between an absolute and a relative pathname, and why one might be used over the other.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
List at least three differences between wildcard metacharacters and regular expressions.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A temporary connection that sends information from one command or process in memory to another; it can also be represented by a file on the filesystem.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The files that represent the same data as other files.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
What command is most effective at identifying different types of files?​

A) stat
B) ​ls -l
C) ​ll
D) ​file
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
What is the disadvantage of using the cat command to display a very large text file? How can you get around this problem?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file's _________________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Describe the difference between named pipe files and socket files.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Explain why the vi editor is called a bimodal editor.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The full pathname to a certain file or directory starting from the root directory.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
In vi, using command mode, what ​series of key presses below will cause the line on which the cursor is on to be deleted?

A) ​X
B) ​dd
C) ​yw
D) ​d
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
Text wildcards used to ease the searching of specific text information are called _________________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
In what mode does the vi editor open by default?​

A) ​append mode
B) ​insert mode
C) ​overview mode
D) ​command mode
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
Filenames that start with a period, such as .file, are referred to as _____________ files.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?​

A) ​dd
B) ​Ctrl+d
C) ​Ctrl+k
D) ​Ctrl+a
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A variant of the grep command used to search files for patterns, using extended regular expressions.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
Due to the fact that the * character can be used to match all ​characters in a filename, or all files in a directory, it is referred to as a ____________ metacharacter.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A Linux command that searches files for patterns of characters using regular expression metacharacters. The command name is short for "global regular expression print."
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
​At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes?

A) ​:q
B) ​:q!
C) ​:exit
D) ​:!
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A file that can be executed by the Linux operating system to run in memory as a process and perform a useful function.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Select the two ​filename extensions that are associated with C++ programming language source code files:

A) ​.c
B) ​.cc
C) ​.cpp
D) ​.c++
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The special metacharacters used to match patterns of text within text files; they are commonly used by text tool commands, including grep.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
What two regular expression characters can be used to match the characters at the beginning or end of a line, respectively?

A) ​.
B) ​^
C) ​$
D) ​+
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Select below the command and the associated alias available on most Linux systems that displays ​a long listing for each file in a directory?

A) ​ls -F
B) ​lf
C) ​ls -l
D) ​ll
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
When displaying a large text file, what two commands provide the ability to show text in a page by page fashion?​

A) more
B) paged​
C) less
D) ​buffer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​The joining of text together to make one larger whole. In Linux, words and strings of text are joined together to form a displayed file.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
​A variant of the grep command that does not allow the use of regular expressions.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
What two characters below should not be used in filenames?​

A) ​_
B) ​.
C) ​$
D) ​*
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
​Match each correct item with the statement below.​
a.​Absolute pathname
b.command mode​
c.​concatenation
d.executable program​
e.​egrep command
f.​fgrep command
g.​grep command
h.​linked file
i.​named pipe file
j.regular expressions
One of the two modes in vi; it allows a user to perform any available text-editing task that is not related to inserting text into the document.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.