Deck 4: Linux Filesystem Management

Full screen (f)
exit full mode
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.
Use Space or
up arrow
down arrow
to flip the card.
Question
To create a hard link, you must use the ____ command.

A) ln
B) link
C) lnk
D) lk
Question
In the FHS, the ____ directory is the root user's home directory.

A) /bin
B) /home
C) /boot
D) /root
Question
When using the find command, the -size x criteria is used to search for files with a size greater than x. _________________________
Question
The chgrp command takes ____ argument(s) at minimum.

A) one
B) two
C) three
D) four
Question
You can see the contents of a certain variable in memory by using the ____ metacharacter with the echo command.

A) $
B) *
C) &
D) #
Question
You can use wildcard metacharacters with the find command.
Question
The rmdir command automatically removes a directory and all of its subdirectories and files.
Question
The PATH variable lists directories that are searched for executable files if a relative or absolute pathname was not specified when executing a command on the command line. _________________________
Question
The ____ section of a filesystem is the section that contains information about the filesystem in general.

A) inode table
B) inode
C) data blocks
D) superblock
Question
To move files, you can use the mv command.
Question
The ____ command takes a list of arguments specifying the absolute or relative pathnames of files to remove.

A) del
B) rm
C) remove
D) delete
Question
The fastest method to search for files in the Linux directory tree is to use the ____ command.

A) search
B) id
C) find
D) locate
Question
To create a subdirectory, you would use the makedir command. _________________________
Question
When working with files, the special metacharacter ".." specifies the current directory. _________________________
Question
When using the chmod command, if there is no character specifying the category of user to affect, only the group category is affected.
Question
Copying a file can be accomplished using the ____ command.

A) copy
B) mv
C) cp
D) cpy
Question
The execute permission for a file allows a user the ability to execute the file in memory (if it is a program file or a script). _________________________
Question
In the FHS, the ____ directory contains the Linux kernel and files used by the boot loader.

A) /load
B) /bin
C) /boot
D) /mnt
Question
In the FHS, the ____ directory contains most system commands and utilities.

A) /usr
B) /root
C) /bin
D) /home
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to view your current user name.
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to change the group owner of a file or directory.
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to view your group memberships and primary group.
Question
To set all of the special permissions on a certain file or directory, you can use the command ____, where name is the name of the file or directory.

A) chmod 777 name
B) chmod 7777 name
C) chmod 6666 name
D) chmod 0000 name
Question
When using the chmod command for a specific file, the ____ argument would add read permission and remove write permission for the group permissions.

A) u+r+w
B) g-r+w
C) g+r-w
D) o+r-w
Question
In a file's mode, if a permission is unavailable, a(n) ____ character replaces its position in the mode.

A) *
B) +
C) ?
D) -
Question
To create a(n) ____________________ link, you use the -s option to the ln command.
Question
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
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
When a user creates a file or directory, that user's name and ____________________ becomes the owner and group owner of the file, respectively.
Question
When using the chmod command, the mode rwx can be represented by the number ____.

A) 0
B) 1
C) 7
D) 8
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to displays BASH shell aliases.
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
Question
The section of an inode that stores permissions is called the ____ of the file.

A) tail
B) head
C) mode
D) accessor
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to change the ownership of a file or directory.
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
If a user has ____ permission for a file, they can open, read, and edit the contents of a file.

A) write
B) execute
C) read
D) alter
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to change the permissions for a certain file or directory.
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to quickly create an empty file.
Question
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to test network connectivity.
Question
Describe the SUID. Give an example of a command that typically has this permission set.
Question
What are the three main structural sections of a Linux filesystem? Describe each section.
Question
How does the execute permission apply to a directory?
Question
Describe hard and symbolic links. What is the difference between them?
Question
What is the difference between the mv and cp commands, in terms of the way that they work on directories? How do you copy a directory full of files in Linux?
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 4: Linux Filesystem Management
1
The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.
True
2
To create a hard link, you must use the ____ command.

A) ln
B) link
C) lnk
D) lk
A
3
In the FHS, the ____ directory is the root user's home directory.

A) /bin
B) /home
C) /boot
D) /root
D
4
When using the find command, the -size x criteria is used to search for files with a size greater than x. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
5
The chgrp command takes ____ argument(s) at minimum.

A) one
B) two
C) three
D) four
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
6
You can see the contents of a certain variable in memory by using the ____ metacharacter with the echo command.

A) $
B) *
C) &
D) #
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
7
You can use wildcard metacharacters with the find command.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
8
The rmdir command automatically removes a directory and all of its subdirectories and files.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
9
The PATH variable lists directories that are searched for executable files if a relative or absolute pathname was not specified when executing a command on the command line. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
10
The ____ section of a filesystem is the section that contains information about the filesystem in general.

A) inode table
B) inode
C) data blocks
D) superblock
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
11
To move files, you can use the mv command.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
12
The ____ command 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 45 flashcards in this deck.
Unlock Deck
k this deck
13
The fastest method to search for files in the Linux directory tree is to use the ____ command.

A) search
B) id
C) find
D) locate
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
14
To create a subdirectory, you would use the makedir command. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
15
When working with files, the special metacharacter ".." specifies the current directory. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
16
When using the chmod command, if there is no character specifying the category of user to affect, only the group category is affected.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
17
Copying a file can be accomplished using the ____ command.

A) copy
B) mv
C) cp
D) cpy
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
18
The execute permission for a file allows a user the ability to execute the file in memory (if it is a program file or a script). _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
19
In the FHS, the ____ directory contains the Linux kernel and files used by the boot loader.

A) /load
B) /bin
C) /boot
D) /mnt
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
20
In the FHS, the ____ directory contains most system commands and utilities.

A) /usr
B) /root
C) /bin
D) /home
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
21
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to view your current user name.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
22
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to change the group owner of a file or directory.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
23
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to view your group memberships and primary group.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
24
To set all of the special permissions on a certain file or directory, you can use the command ____, where name is the name of the file or directory.

A) chmod 777 name
B) chmod 7777 name
C) chmod 6666 name
D) chmod 0000 name
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
25
When using the chmod command for a specific file, the ____ argument would add read permission and remove write permission for the group permissions.

A) u+r+w
B) g-r+w
C) g+r-w
D) o+r-w
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
26
In a file's mode, if a permission is unavailable, a(n) ____ character replaces its position in the mode.

A) *
B) +
C) ?
D) -
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
27
To create a(n) ____________________ link, you use the -s option to the ln command.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
28
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 45 flashcards in this deck.
Unlock Deck
k this deck
29
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 45 flashcards in this deck.
Unlock Deck
k this deck
30
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 45 flashcards in this deck.
Unlock Deck
k this deck
31
When using the chmod command, the mode rwx can be represented by the number ____.

A) 0
B) 1
C) 7
D) 8
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
32
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to displays BASH shell aliases.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
33
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
34
The section of an inode that stores permissions is called the ____ of the file.

A) tail
B) head
C) mode
D) accessor
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
35
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to change the ownership of a file or directory.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
36
___________________________________ 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 45 flashcards in this deck.
Unlock Deck
k this deck
37
If a user has ____ permission for a file, they can open, read, and edit the contents of a file.

A) write
B) execute
C) read
D) alter
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
38
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to change the permissions for a certain file or directory.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
39
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to quickly create an empty file.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
40
Match each term with the correct statement below.
a.chgrp
f.chown
b.groups
g.ping
c.alias
h.whoami
d.touch
i.umask
e.chmod
Command used to test network connectivity.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
41
Describe the SUID. Give an example of a command that typically has this permission set.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
42
What are the three main structural sections of a Linux filesystem? Describe each section.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
43
How does the execute permission apply to a directory?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
44
Describe hard and symbolic links. What is the difference between them?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
45
What is the difference between the mv and cp commands, in terms of the way that they work on directories? How do you copy a directory full of files in Linux?
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.