Deck 4: Linux Filesystem Management

ملء الشاشة (f)
exit full mode
سؤال
Shell scripts do not require the execute permission in order to be run the same way binary programs are run.​
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
What command can be used to copy files?

A) copy
B) mv
C) cp
D) cpy
سؤال
​The database for the locate command can be updated manually by using the updatedb command.
سؤال
What does the setfacl -b command do?​

A) ​It removes all extra ACL assignments on a given file
B) ​It sets 7777 on a given file or folder for all users / groups
C) ​The file's user / group ownership is changed to root / root
D) ​The file's ACL assignments are created and are then ready to be modified.
سؤال
The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?

A) /load
B) /bin
C) /boot
D) /mnt
سؤال
In order to create a hard link, what command must be used?

A) ln
B) link
C) lnk
D) lk
سؤال
Select the command below that utilizes a premade database that contains a list of all the files on a system:

A) search
B) id
C) find
D) locate
سؤال
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

A) /bin
B) /home/root
C) /boot
D) /root
سؤال
What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?

A) u+r+w
B) g-r+w
C) g+r-w
D) o+r-w
سؤال
What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?

A) del
B) rm
C) remove
D) delete
سؤال
In order to set all of the special permissions on a certain file or directory, which command below should be used on a file named filename?

A) chmod 777 filename
B) chmod 7777 filename
C) chmod 6666 filename
D) chmod 0000 filename
سؤال
The section of an inode that stores permissions is referred to as what?

A) the tail of the file
B) the head of the file
C) the mode of the file
D) the accessor of the file
سؤال
You can use wildcard metacharacters with the find command.
سؤال
When using the chmod command, the mode rwx can be represented by which number?

A) 0
B) 1
C) 7
D) 8
سؤال
In a file's mode, a permission that is unavailable is represented by what character?

A) *
B) +
C) ?
D) -
سؤال
The rmdir command automatically removes a directory and all of its subdirectories and files.
سؤال
What permission grants a user the ability to open, read, and edit the contents of a file?

A) write
B) execute
C) read
D) alter
سؤال
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?

A) $
B) *
C) &
D) #
سؤال
What section of a filesystem contains information about the filesystem in general?

A) inode table
B) inode
C) data blocks
D) superblock
سؤال
The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.
سؤال
​Select the mode below that corresponds to setting r-x:

A) 1​
B) ​2
C) 5​
D) ​6
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A powerful command-line text editor available on most UNIX and Linux systems.
سؤال
Describe the SUID. Give an example of a command that typically has this permission set.
سؤال
What option, when added to the rm command, is commonly referred to as the -resume option?

A) ​-d
B) ​-r
C) ​-f
D) ​-i
سؤال
____________________ defines a standard set of directories for use by all Linux and UNIX systems, as well as the file and subdirectory contents of each directory.
سؤال
In order to quickly create an empty file, what command can be used?​

A) ​vim file1
B) ​touch file1
C) ​echo file1
D) ​create file1
سؤال
Describe hard and symbolic links. What is the difference between them?
سؤال
​What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?

A) ​read
B) ​write
C) ​execute
D) ​sticky bit
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A named pipe connecting processes on two different computers; it can also be represented by a file on the filesystem.
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​The joining of text together to make on larger whole. In Linux, words and strings of text are joined together to form a displayed file.
سؤال
What are the three main structural sections of a Linux filesystem? Describe each section.
سؤال
What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?​

A) ​read
B) ​write
C) ​execute
D) ​sticky bit
سؤال
To copy a directory full of files in Linux, you must tell the cp command that the copy will be ____________________ (involve files and subdirectories too) by using the -r option
سؤال
​Describe the SGID special permission, and provide an example of where this permission might be used.
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
A popular and widespread text editor more conducive to word processing that vi. It was originally developed by Richard Stallman.​
سؤال
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
سؤال
When a user creates a file or directory, that user's name and ____________________ becomes the owner and group owner of the file, respectively.
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
A Linux command used to display lines of text at the end of a file.​
سؤال
How does the execute permission apply to a directory?
سؤال
To create a(n) ____________________ link, you use the -s option to the ln command.
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A Linux command used to display the contents of a file in octal format.
سؤال
​What two commands below will grant only the execute permission to username bob on file1, assuming that bob is the file's owner?

A) chmod 777 file1
B) chmod u=x​ file1
C) ​chmod 0110 file1
D) ​chmod a+rwx file1
سؤال
​What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file?

A) ​sticky bit
B) ​SUID
C) ​SGID
D) ​SQUID
سؤال
If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?​

A) ​read
B) ​write
C) ​execute
D) ​move
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A Linux command used to search for and display text characters in a binary file.
سؤال
​What two commands below will work recursively if specified with the -R option?

A) ​mkdir
B) ​mv
C) ​cp
D) ​rm
سؤال
​What two commands below can be used to locate files on a filesystem?

A) ​locate
B) ​search
C) ​find
D) ​query
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A common text editor used within GUI environments.
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​The files that represent the same data as other files.
سؤال
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
A Linux command that displays the first set of lines of a text file.​
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 4: Linux Filesystem Management
1
Shell scripts do not require the execute permission in order to be run the same way binary programs are run.​
False
2
What command can be used to copy files?

A) copy
B) mv
C) cp
D) cpy
C
3
​The database for the locate command can be updated manually by using the updatedb command.
True
4
What does the setfacl -b command do?​

A) ​It removes all extra ACL assignments on a given file
B) ​It sets 7777 on a given file or folder for all users / groups
C) ​The file's user / group ownership is changed to root / root
D) ​The file's ACL assignments are created and are then ready to be modified.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?

A) /load
B) /bin
C) /boot
D) /mnt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
In order to create a hard link, what command must be used?

A) ln
B) link
C) lnk
D) lk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Select the command below that utilizes a premade database that contains a list of all the files on a system:

A) search
B) id
C) find
D) locate
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

A) /bin
B) /home/root
C) /boot
D) /root
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?

A) u+r+w
B) g-r+w
C) g+r-w
D) o+r-w
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
What command below takes a list of arguments specifying the absolute or relative pathnames of files to remove?

A) del
B) rm
C) remove
D) delete
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
In order to set all of the special permissions on a certain file or directory, which command below should be used on a file named filename?

A) chmod 777 filename
B) chmod 7777 filename
C) chmod 6666 filename
D) chmod 0000 filename
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
The section of an inode that stores permissions is referred to as what?

A) the tail of the file
B) the head of the file
C) the mode of the file
D) the accessor of the file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
You can use wildcard metacharacters with the find command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
When using the chmod command, the mode rwx can be represented by which number?

A) 0
B) 1
C) 7
D) 8
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
In a file's mode, a permission that is unavailable is represented by what character?

A) *
B) +
C) ?
D) -
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
The rmdir command automatically removes a directory and all of its subdirectories and files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
What permission grants a user the ability to open, read, and edit the contents of a file?

A) write
B) execute
C) read
D) alter
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
The contents of a certain variable in memory can be viewed using which metacharacter below in combination with the echo command?

A) $
B) *
C) &
D) #
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
What section of a filesystem contains information about the filesystem in general?

A) inode table
B) inode
C) data blocks
D) superblock
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
​Select the mode below that corresponds to setting r-x:

A) 1​
B) ​2
C) 5​
D) ​6
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A powerful command-line text editor available on most UNIX and Linux systems.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Describe the SUID. Give an example of a command that typically has this permission set.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
What option, when added to the rm command, is commonly referred to as the -resume option?

A) ​-d
B) ​-r
C) ​-f
D) ​-i
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
____________________ defines a standard set of directories for use by all Linux and UNIX systems, as well as the file and subdirectory contents of each directory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
In order to quickly create an empty file, what command can be used?​

A) ​vim file1
B) ​touch file1
C) ​echo file1
D) ​create file1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Describe hard and symbolic links. What is the difference between them?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
​What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?

A) ​read
B) ​write
C) ​execute
D) ​sticky bit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A named pipe connecting processes on two different computers; it can also be represented by a file on the filesystem.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​The joining of text together to make on larger whole. In Linux, words and strings of text are joined together to form a displayed file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
What are the three main structural sections of a Linux filesystem? Describe each section.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?​

A) ​read
B) ​write
C) ​execute
D) ​sticky bit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
To copy a directory full of files in Linux, you must tell the cp command that the copy will be ____________________ (involve files and subdirectories too) by using the -r option
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
​Describe the SGID special permission, and provide an example of where this permission might be used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
A popular and widespread text editor more conducive to word processing that vi. It was originally developed by Richard Stallman.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
When a user creates a file or directory, that user's name and ____________________ becomes the owner and group owner of the file, respectively.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
A Linux command used to display lines of text at the end of a file.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
How does the execute permission apply to a directory?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
To create a(n) ____________________ link, you use the -s option to the ln command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A Linux command used to display the contents of a file in octal format.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
​What two commands below will grant only the execute permission to username bob on file1, assuming that bob is the file's owner?

A) chmod 777 file1
B) chmod u=x​ file1
C) ​chmod 0110 file1
D) ​chmod a+rwx file1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
​What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file?

A) ​sticky bit
B) ​SUID
C) ​SGID
D) ​SQUID
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file?​

A) ​read
B) ​write
C) ​execute
D) ​move
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A Linux command used to search for and display text characters in a binary file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
​What two commands below will work recursively if specified with the -R option?

A) ​mkdir
B) ​mv
C) ​cp
D) ​rm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
​What two commands below can be used to locate files on a filesystem?

A) ​locate
B) ​search
C) ​find
D) ​query
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​A common text editor used within GUI environments.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
​The files that represent the same data as other files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
​Match each correct item with the statement below.​​
a.​concatenation
b.Emacs (Editor MACroS) editor​
c.​gedit editor
d.head command​
e.​linked file
f.od command​
g.​socket file
h.​strings command
i.​tail command
j.vi editor
A Linux command that displays the first set of lines of a text file.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.