Deck 3: Exploring Linux Filesystems

ملء الشاشة (f)
exit full mode
سؤال
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]
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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
سؤال
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
سؤال
When issuing the ls -F command, what special character indicates a linked file?

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

A) .
B) [...]
C) ^
D) {}
سؤال
Linux uses a logical directory tree to organize files into different folders.
سؤال
Pressing the Esc key at the prompt while using the more command displays a help screen.
سؤال
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
سؤال
To display a text file in reverse order, what command should be used?​

A) ​cat
B) ​tac
C) ​tee
D) ​sed
سؤال
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
سؤال
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 ./..
سؤال
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
سؤال
It is acceptable to use shell metacharacters when naming files.
سؤال
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
سؤال
What metacharacter can be used to refer to the current user's home directory?

A) ˜
B) @
C) &
D) #
سؤال
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.
سؤال
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
سؤال
The more command should not be used on binary files.
سؤال
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
سؤال
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

A) *
B) ?
C) +
D) ^
سؤال
Explain the difference between an absolute and a relative pathname, and why one might be used over the other.
سؤال
List at least three differences between wildcard metacharacters and regular expressions.
سؤال
​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.
سؤال
​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.
سؤال
What command is most effective at identifying different types of files?​

A) stat
B) ​ls -l
C) ​ll
D) ​file
سؤال
What is the disadvantage of using the cat command to display a very large text file? How can you get around this problem?
سؤال
In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file's _________________________.
سؤال
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
سؤال
Describe the difference between named pipe files and socket files.​
سؤال
Explain why the vi editor is called a bimodal editor.
سؤال
​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.
سؤال
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
سؤال
Text wildcards used to ease the searching of specific text information are called _________________________.
سؤال
In what mode does the vi editor open by default?​

A) ​append mode
B) ​insert mode
C) ​overview mode
D) ​command mode
سؤال
Filenames that start with a period, such as .file, are referred to as _____________ files.
سؤال
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
سؤال
​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.
سؤال
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.
سؤال
​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."
سؤال
​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) ​:!
سؤال
​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.
سؤال
Select the two ​filename extensions that are associated with C++ programming language source code files:

A) ​.c
B) ​.cc
C) ​.cpp
D) ​.c++
سؤال
​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.
سؤال
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) ​+
سؤال
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
سؤال
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
سؤال
​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.
سؤال
​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.
سؤال
What two characters below should not be used in filenames?​

A) ​_
B) ​.
C) ​$
D) ​*
سؤال
​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 Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (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) =
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Which character(s) below represent extended regular expression metacharacter(s)?

A) .
B) [...]
C) ^
D) {}
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Linux uses a logical directory tree to organize files into different folders.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Pressing the Esc key at the prompt while using the more command displays a help screen.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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 ./..
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
It is acceptable to use shell metacharacters when naming files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
What metacharacter can be used to refer to the current user's home directory?

A) ˜
B) @
C) &
D) #
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
The more command should not be used on binary files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

A) *
B) ?
C) +
D) ^
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Explain the difference between an absolute and a relative pathname, and why one might be used over the other.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
List at least three differences between wildcard metacharacters and regular expressions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
What command is most effective at identifying different types of files?​

A) stat
B) ​ls -l
C) ​ll
D) ​file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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 _________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
An alternative to the vi editor that offers an equal set of functionality is the GNU _________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Describe the difference between named pipe files and socket files.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Explain why the vi editor is called a bimodal editor.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Text wildcards used to ease the searching of specific text information are called _________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Filenames that start with a period, such as .file, are referred to as _____________ files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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) ​:!
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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++
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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) ​+
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
What two characters below should not be used in filenames?​

A) ​_
B) ​.
C) ​$
D) ​*
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.