Deck 4: Linux Filesystem Management

Full screen (f)
exit full mode
Question
Shell scripts do not require the execute permission in order to be run the same way binary programs are run.​
Use Space or
up arrow
down arrow
to flip the card.
Question
What command can be used to copy files?

A) copy
B) mv
C) cp
D) cpy
Question
​The database for the locate command can be updated manually by using the updatedb command.
Question
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.
Question
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
Question
In order to create a hard link, what command must be used?

A) ln
B) link
C) lnk
D) lk
Question
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
Question
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?

A) /bin
B) /home/root
C) /boot
D) /root
Question
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
Question
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
Question
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
Question
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
Question
You can use wildcard metacharacters with the find command.
Question
When using the chmod command, the mode rwx can be represented by which number?

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

A) *
B) +
C) ?
D) -
Question
The rmdir command automatically removes a directory and all of its subdirectories and files.
Question
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
Question
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) #
Question
What section of a filesystem contains information about the filesystem in general?

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

A) 1​
B) ​2
C) 5​
D) ​6
Question
​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.
Question
Describe the SUID. Give an example of a command that typically has this permission set.
Question
What option, when added to the rm command, is commonly referred to as the -resume option?

A) ​-d
B) ​-r
C) ​-f
D) ​-i
Question
____________________ 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.
Question
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
Question
Describe hard and symbolic links. What is the difference between them?
Question
​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
Question
​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.
Question
​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.
Question
What are the three main structural sections of a Linux filesystem? Describe each section.
Question
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
Question
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
Question
​Describe the SGID special permission, and provide an example of where this permission might be used.
Question
​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.​
Question
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
Question
When a user creates a file or directory, that user's name and ____________________ becomes the owner and group owner of the file, respectively.
Question
​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.​
Question
How does the execute permission apply to a directory?
Question
To create a(n) ____________________ link, you use the -s option to the ln command.
Question
​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.
Question
​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
Question
​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
Question
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
Question
​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.
Question
​What two commands below will work recursively if specified with the -R option?

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

A) ​locate
B) ​search
C) ​find
D) ​query
Question
​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.
Question
​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.
Question
​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
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 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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
In order to create a hard link, what command must be used?

A) ln
B) link
C) lnk
D) lk
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
You can use wildcard metacharacters with the find command.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
In a file's mode, a permission that is unavailable is represented by what character?

A) *
B) +
C) ?
D) -
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
The rmdir command automatically removes a directory and all of its subdirectories and files.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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) #
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
​Select the mode below that corresponds to setting r-x:

A) 1​
B) ​2
C) 5​
D) ​6
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Describe the SUID. Give an example of a command that typically has this permission set.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Describe hard and symbolic links. What is the difference between them?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
What are the three main structural sections of a Linux filesystem? Describe each section.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
​Describe the SGID special permission, and provide an example of where this permission might be used.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.​
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
How does the execute permission apply to a directory?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
To create a(n) ____________________ link, you use the -s option to the ln command.
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.​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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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
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.​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.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
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.
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.​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 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.