Deck 4: Exploring Linux Filesystems

Full screen (f)
exit full mode
Question
Which is an extended regular expression metacharacter?

A).
B)[...]
C)^
D){}
Use Space or
up arrow
down arrow
to flip the card.
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 ls ____ command can be used to provide a long listing for each file in a certain directory.

A)-T
B)-L
C)-F
D)-l
Question
Linux uses a logical directory tree to organize files into different folders.
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
Using wildcard metacharacters, how can one indicate a number is 1 or 2 or 3 or 4?

A)1-4
B)[1-4]
C)[1234]
D)[1,2,3,4]
Question
Pressing the Esc key at the prompt while using the more command displays a help screen.
Question
The ____ metacharacter can also be used to refer to the current user's home directory.

A)~
B)@
C)&
D)#
Question
The more command should not be used on binary files.
Question
The ____ editor is distributed with the GNOME environment.

A)xemacs
B)kedit
C)emacs
D)gedit
Question
You may access much of the functionality of ____ by using the function keys on the keyboard as described at the bottom of the screen.

A)gedit
B)mcedit
C)emacs
D)nedit
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
A linked file is followed by a(n)____.

A)@
B)*
C)/
D)=
Question
The command strings /bin/echo displays the binary characters inside the /bin/echo binary executable program.
Question
The ____ command will confirm the directory that you are currently in on the system.

A)dir
B)pwd
C)whereami
D)ld
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
The ____ command displays the last 10 lines of a text file.

A)end -10
B)head -10
C)stop -10
D)tail -10
Question
Most files on a Linux system that contain configuration information are ____ files.

A)system
B)directory
C)text
D)program
Question
Your current directory is /home, and the contents of the directory are fred, john, and steve. If you type the command cd /home/s and then press the ____ key, the command cd /home/steve will be displayed on the terminal screen.

A)Alt
B)Tab
C)Ctrl
D)Esc
Question
It is acceptable to use shell metacharacters when naming files.
Question
When a user logs into their Linux system, he is placed in the _________________________ directory.
Question
Match between columns
Displays the first 10 lines of a text file.
log file
Displays the first 10 lines of a text file.
special device file
Displays the first 10 lines of a text file.
linked files
Displays the first 10 lines of a text file.
socket file
Displays the first 10 lines of a text file.
head command
Displays the first 10 lines of a text file.
directory
Displays the first 10 lines of a text file.
named pipe
Displays the first 10 lines of a text file.
egrep
Displays the first 10 lines of a text file.
tac command
Displays a file in reverse order.
log file
Displays a file in reverse order.
special device file
Displays a file in reverse order.
linked files
Displays a file in reverse order.
socket file
Displays a file in reverse order.
head command
Displays a file in reverse order.
directory
Displays a file in reverse order.
named pipe
Displays a file in reverse order.
egrep
Displays a file in reverse order.
tac command
A file that contains the most recent entries at the bottom of the file.
log file
A file that contains the most recent entries at the bottom of the file.
special device file
A file that contains the most recent entries at the bottom of the file.
linked files
A file that contains the most recent entries at the bottom of the file.
socket file
A file that contains the most recent entries at the bottom of the file.
head command
A file that contains the most recent entries at the bottom of the file.
directory
A file that contains the most recent entries at the bottom of the file.
named pipe
A file that contains the most recent entries at the bottom of the file.
egrep
A file that contains the most recent entries at the bottom of the file.
tac command
Displays lines of text that match extended regular expressions.
log file
Displays lines of text that match extended regular expressions.
special device file
Displays lines of text that match extended regular expressions.
linked files
Displays lines of text that match extended regular expressions.
socket file
Displays lines of text that match extended regular expressions.
head command
Displays lines of text that match extended regular expressions.
directory
Displays lines of text that match extended regular expressions.
named pipe
Displays lines of text that match extended regular expressions.
egrep
Displays lines of text that match extended regular expressions.
tac command
Special file that serves as placeholders to organize other files.
log file
Special file that serves as placeholders to organize other files.
special device file
Special file that serves as placeholders to organize other files.
linked files
Special file that serves as placeholders to organize other files.
socket file
Special file that serves as placeholders to organize other files.
head command
Special file that serves as placeholders to organize other files.
directory
Special file that serves as placeholders to organize other files.
named pipe
Special file that serves as placeholders to organize other files.
egrep
Special file that serves as placeholders to organize other files.
tac 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.
log file
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.
special device file
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.
linked files
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.
socket file
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.
head 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.
directory
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.
named pipe
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.
egrep
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.
tac command
Files that have an association with one another.
log file
Files that have an association with one another.
special device file
Files that have an association with one another.
linked files
Files that have an association with one another.
socket file
Files that have an association with one another.
head command
Files that have an association with one another.
directory
Files that have an association with one another.
named pipe
Files that have an association with one another.
egrep
Files that have an association with one another.
tac 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.
log file
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.
special device file
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.
linked files
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.
socket file
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.
head 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.
directory
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.
named pipe
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.
egrep
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.
tac command
A file that represents a device on the system, such as a hard disk or serial port.
log file
A file that represents a device on the system, such as a hard disk or serial port.
special device file
A file that represents a device on the system, such as a hard disk or serial port.
linked files
A file that represents a device on the system, such as a hard disk or serial port.
socket file
A file that represents a device on the system, such as a hard disk or serial port.
head command
A file that represents a device on the system, such as a hard disk or serial port.
directory
A file that represents a device on the system, such as a hard disk or serial port.
named pipe
A file that represents a device on the system, such as a hard disk or serial port.
egrep
A file that represents a device on the system, such as a hard disk or serial port.
tac command
Question
In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x )refer to the file's _________________________.
Question
Why is the vi editor called a bi-modal editor? Explain.
Question
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
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
Special metacharacters used to match patterns of text within text files are called _________________________.
Question
The ____ regular expression metacharacter matches 0 or more occurrences of the previous character.

A)*
B)?
C)+
D)^
Question
What does the cd command do? What happens if you use this command without an argument?
Question
List three differences between wildcard metacharacters and regular expressions.
Question
The file .file.dat is an example of a(n)_________________________ file.
Question
What is the difference between an absolute and a relative pathname? What is a benefit of each?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/32
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: Exploring Linux Filesystems
1
Which is an extended regular expression metacharacter?

A).
B)[...]
C)^
D){}
D
2
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 ./..
B
3
The ls ____ command can be used to provide a long listing for each file in a certain directory.

A)-T
B)-L
C)-F
D)-l
D
4
Linux uses a logical directory tree to organize files into different folders.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
5
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 32 flashcards in this deck.
Unlock Deck
k this deck
6
Using wildcard metacharacters, how can one indicate a number is 1 or 2 or 3 or 4?

A)1-4
B)[1-4]
C)[1234]
D)[1,2,3,4]
Unlock Deck
Unlock for access to all 32 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 32 flashcards in this deck.
Unlock Deck
k this deck
8
The ____ metacharacter can also be used to refer to the current user's home directory.

A)~
B)@
C)&
D)#
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
9
The more command should not be used on binary files.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
10
The ____ editor is distributed with the GNOME environment.

A)xemacs
B)kedit
C)emacs
D)gedit
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
11
You may access much of the functionality of ____ by using the function keys on the keyboard as described at the bottom of the screen.

A)gedit
B)mcedit
C)emacs
D)nedit
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
12
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 32 flashcards in this deck.
Unlock Deck
k this deck
13
A linked file is followed by a(n)____.

A)@
B)*
C)/
D)=
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
14
The command strings /bin/echo displays the binary characters inside the /bin/echo binary executable program.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
15
The ____ command will confirm the directory that you are currently in on the system.

A)dir
B)pwd
C)whereami
D)ld
Unlock Deck
Unlock for access to all 32 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 32 flashcards in this deck.
Unlock Deck
k this deck
17
The ____ command displays the last 10 lines of a text file.

A)end -10
B)head -10
C)stop -10
D)tail -10
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
18
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 32 flashcards in this deck.
Unlock Deck
k this deck
19
Your current directory is /home, and the contents of the directory are fred, john, and steve. If you type the command cd /home/s and then press the ____ key, the command cd /home/steve will be displayed on the terminal screen.

A)Alt
B)Tab
C)Ctrl
D)Esc
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
20
It is acceptable to use shell metacharacters when naming files.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
21
When a user logs into their Linux system, he is placed in the _________________________ directory.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
22
Match between columns
Displays the first 10 lines of a text file.
log file
Displays the first 10 lines of a text file.
special device file
Displays the first 10 lines of a text file.
linked files
Displays the first 10 lines of a text file.
socket file
Displays the first 10 lines of a text file.
head command
Displays the first 10 lines of a text file.
directory
Displays the first 10 lines of a text file.
named pipe
Displays the first 10 lines of a text file.
egrep
Displays the first 10 lines of a text file.
tac command
Displays a file in reverse order.
log file
Displays a file in reverse order.
special device file
Displays a file in reverse order.
linked files
Displays a file in reverse order.
socket file
Displays a file in reverse order.
head command
Displays a file in reverse order.
directory
Displays a file in reverse order.
named pipe
Displays a file in reverse order.
egrep
Displays a file in reverse order.
tac command
A file that contains the most recent entries at the bottom of the file.
log file
A file that contains the most recent entries at the bottom of the file.
special device file
A file that contains the most recent entries at the bottom of the file.
linked files
A file that contains the most recent entries at the bottom of the file.
socket file
A file that contains the most recent entries at the bottom of the file.
head command
A file that contains the most recent entries at the bottom of the file.
directory
A file that contains the most recent entries at the bottom of the file.
named pipe
A file that contains the most recent entries at the bottom of the file.
egrep
A file that contains the most recent entries at the bottom of the file.
tac command
Displays lines of text that match extended regular expressions.
log file
Displays lines of text that match extended regular expressions.
special device file
Displays lines of text that match extended regular expressions.
linked files
Displays lines of text that match extended regular expressions.
socket file
Displays lines of text that match extended regular expressions.
head command
Displays lines of text that match extended regular expressions.
directory
Displays lines of text that match extended regular expressions.
named pipe
Displays lines of text that match extended regular expressions.
egrep
Displays lines of text that match extended regular expressions.
tac command
Special file that serves as placeholders to organize other files.
log file
Special file that serves as placeholders to organize other files.
special device file
Special file that serves as placeholders to organize other files.
linked files
Special file that serves as placeholders to organize other files.
socket file
Special file that serves as placeholders to organize other files.
head command
Special file that serves as placeholders to organize other files.
directory
Special file that serves as placeholders to organize other files.
named pipe
Special file that serves as placeholders to organize other files.
egrep
Special file that serves as placeholders to organize other files.
tac 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.
log file
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.
special device file
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.
linked files
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.
socket file
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.
head 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.
directory
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.
named pipe
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.
egrep
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.
tac command
Files that have an association with one another.
log file
Files that have an association with one another.
special device file
Files that have an association with one another.
linked files
Files that have an association with one another.
socket file
Files that have an association with one another.
head command
Files that have an association with one another.
directory
Files that have an association with one another.
named pipe
Files that have an association with one another.
egrep
Files that have an association with one another.
tac 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.
log file
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.
special device file
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.
linked files
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.
socket file
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.
head 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.
directory
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.
named pipe
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.
egrep
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.
tac command
A file that represents a device on the system, such as a hard disk or serial port.
log file
A file that represents a device on the system, such as a hard disk or serial port.
special device file
A file that represents a device on the system, such as a hard disk or serial port.
linked files
A file that represents a device on the system, such as a hard disk or serial port.
socket file
A file that represents a device on the system, such as a hard disk or serial port.
head command
A file that represents a device on the system, such as a hard disk or serial port.
directory
A file that represents a device on the system, such as a hard disk or serial port.
named pipe
A file that represents a device on the system, such as a hard disk or serial port.
egrep
A file that represents a device on the system, such as a hard disk or serial port.
tac command
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
23
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 32 flashcards in this deck.
Unlock Deck
k this deck
24
Why is the vi editor called a bi-modal editor? Explain.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
25
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
Unlock Deck
Unlock for access to all 32 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 32 flashcards in this deck.
Unlock Deck
k this deck
27
Special metacharacters used to match patterns of text within text files are called _________________________.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
28
The ____ regular expression metacharacter matches 0 or more occurrences of the previous character.

A)*
B)?
C)+
D)^
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
29
What does the cd command do? What happens if you use this command without an argument?
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
30
List three differences between wildcard metacharacters and regular expressions.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
31
The file .file.dat is an example of a(n)_________________________ file.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
32
What is the difference between an absolute and a relative pathname? What is a benefit of each?
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 32 flashcards in this deck.