Deck 3: Exploring Linux Filesystems

Full screen (f)
exit full mode
Question
The ____ metacharacter can also be used to refer to the current user's home directory.

A) ~
B) @
C) &
D) #
Use Space or
up arrow
down arrow
to flip the card.
Question
If you type enough unique letters of a directory and press ____ key, the BASH shell will find the intended file or directory being specified and fill in the appropriate information.

A) Alt
B) Tab
C) Ctrl
D) Esc
Question
Pressing the Esc key at the prompt while using the more command displays a help screen.
Question
Most files on a Linux system that contain configuration information are ____ files.

A) system
B) directory
C) text
D) program
Question
The more command should not be used on binary files.
Question
The ____ symbol indicates a linked file.

A) @
B) *
C) &
D) =
Question
It is acceptable to use shell metacharacters when naming files.
Question
The most common way to search for information using regular expressions is the grep command. _________________________
Question
The command strings /bin/echo displays the binary characters inside the /bin/echo binary executable program.
Question
When you first open the vi editor, you are placed in edit mode. _________________________
Question
The ____ command can be used to provide a long listing for each file in a certain directory.

A) ls -T
B) ls -L
C) ls -F
D) ls -l
Question
To move from the /home/joe/test/data to the /home/joe directory, use the ____ command.

A) cd ..
B) cd ../..
C) /home/joe
D) cd ./..
Question
The ____ command will confirm the system directory that you are currently in.

A) dir
B) pwd
C) whereami
D) ld
Question
The three characters following a period in a file name are referred to as the filename extension. _________________________
Question
Filenames can include up to 200 characters. _________________________
Question
To view a list of files and their type, use the ____ switch to the ls command.

A) -T
B) -L
C) -F
D) -l
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]
Question
To display the contents of a file called data, use the command ____.

A) disp data
B) ls data
C) ls -l data
D) cat data
Question
In Linux, the root directory is represented by a \ character. _________________________
Question
Linux uses a logical directory tree to organize files into different folders.
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Displays the first ten lines of a text file.
Question
The ____ regular expression metacharacter matches 0 or more occurrences of the previous character.

A) *
B) ?
C) +
D) ^
Question
The ____ can be used with LISP artificial intelligence programming language and supports hundreds of keyboard functions like the vi editor.

A) Kedit editor
B) Mcedit editor
C) Emacs editor
D) Nedit editor
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
A file that contains the most recent entries at the bottom of the file.
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
A file that represents a device on the system, such as a hard disk or serial port.
Question
Text wildcards used to ease the searching of specific text information are called ____________________.
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Identifies a channel that passes information from one process in memory to another, and in some cases can be mediated by files on the hard drive.
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Files that have an association with one another.
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Displays lines of text that match extended regular expressions.
Question
The file .file.dat is an example of a(n) ____________________ file.
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
A file that allows a process on another computer to write to a file on the local computer while another process reads from that file.
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
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Special file that serves as placeholders to organize other files.
Question
Which is an extended regular expression metacharacter?

A) .
B) [...]
C) ^
D) {}
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
The ____ editor is functionally analogous to the Windows Wordpad and Notepad editors.

A) XEmacs
B) vi
C) Emacs
D) gedit
Question
When a user logs into their Linux system, he is placed in the ____________________ directory.
Question
The ____ command displays the last five lines of a text file.

A) end -5
B) head -5
C) stop -5
D) tail -5
Question
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Displays a file in reverse order.
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
What does the cd command do? What happens if you use this command without an argument?
Question
What is the difference between an absolute and a relative pathname? What is a benefit of each?
Question
Why is the vi editor called a bimodal editor? Explain.
Question
List at least three differences between wildcard metacharacters and regular expressions.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/45
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: Exploring Linux Filesystems
1
The ____ metacharacter can also be used to refer to the current user's home directory.

A) ~
B) @
C) &
D) #
A
2
If you type enough unique letters of a directory and press ____ key, the BASH shell will find the intended file or directory being specified and fill in the appropriate information.

A) Alt
B) Tab
C) Ctrl
D) Esc
B
3
Pressing the Esc key at the prompt while using the more command displays a help screen.
False
4
Most files on a Linux system that contain configuration information are ____ files.

A) system
B) directory
C) text
D) program
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
5
The more command should not be used on binary files.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
6
The ____ symbol indicates a linked file.

A) @
B) *
C) &
D) =
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
7
It is acceptable to use shell metacharacters when naming files.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
8
The most common way to search for information using regular expressions is the grep command. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
9
The command strings /bin/echo displays the binary characters inside the /bin/echo binary executable program.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
10
When you first open the vi editor, you are placed in edit mode. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
11
The ____ command can be used to provide a long listing for each file in a certain directory.

A) ls -T
B) ls -L
C) ls -F
D) ls -l
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
12
To move from the /home/joe/test/data to the /home/joe directory, use the ____ command.

A) cd ..
B) cd ../..
C) /home/joe
D) cd ./..
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
13
The ____ command will confirm the system directory that you are currently in.

A) dir
B) pwd
C) whereami
D) ld
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
14
The three characters following a period in a file name are referred to as the filename extension. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
15
Filenames can include up to 200 characters. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
16
To view a list of files and their type, use the ____ switch to the ls command.

A) -T
B) -L
C) -F
D) -l
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
17
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]
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
18
To display the contents of a file called data, use the command ____.

A) disp data
B) ls data
C) ls -l data
D) cat data
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
19
In Linux, the root directory is represented by a \ character. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
20
Linux uses a logical directory tree to organize files into different folders.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
21
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Displays the first ten lines of a text file.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
22
The ____ regular expression metacharacter matches 0 or more occurrences of the previous character.

A) *
B) ?
C) +
D) ^
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
23
The ____ can be used with LISP artificial intelligence programming language and supports hundreds of keyboard functions like the vi editor.

A) Kedit editor
B) Mcedit editor
C) Emacs editor
D) Nedit editor
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
24
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
A file that contains the most recent entries at the bottom of the file.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
25
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
A file that represents a device on the system, such as a hard disk or serial port.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
26
Text wildcards used to ease the searching of specific text information are called ____________________.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
27
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Identifies a channel that passes information from one process in memory to another, and in some cases can be mediated by files on the hard drive.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
28
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Files that have an association with one another.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
29
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Displays lines of text that match extended regular expressions.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
30
The file .file.dat is an example of a(n) ____________________ file.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
31
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
A file that allows a process on another computer to write to a file on the local computer while another process reads from that file.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
32
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 45 flashcards in this deck.
Unlock Deck
k this deck
33
An alternative to the vi editor that offers an equal set of functionality is the GNU ____________________.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
34
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Special file that serves as placeholders to organize other files.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
35
Which is an extended regular expression metacharacter?

A) .
B) [...]
C) ^
D) {}
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
36
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
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
37
The ____ editor is functionally analogous to the Windows Wordpad and Notepad editors.

A) XEmacs
B) vi
C) Emacs
D) gedit
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
38
When a user logs into their Linux system, he is placed in the ____________________ directory.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
39
The ____ command displays 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 45 flashcards in this deck.
Unlock Deck
k this deck
40
Match each correct item with the statement below.
a.log file
f.socket file
b.tac command
g.head command
c.directory
h.special device file
d.named pipe
i.linked files
e.egrep command
Displays a file in reverse order.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
41
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 45 flashcards in this deck.
Unlock Deck
k this deck
42
What does the cd command do? What happens if you use this command without an argument?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
43
What is the difference between an absolute and a relative pathname? What is a benefit of each?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
44
Why is the vi editor called a bimodal editor? Explain.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
45
List at least three differences between wildcard metacharacters and regular expressions.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 45 flashcards in this deck.