Deck 5: Linux Filesystem Management

Full screen (f)
exit full mode
Question
When using the chmod command, the mode rwx can be represented by the number ____.

A)0
B)1
C)7
D)8
Use Space or
up arrow
down arrow
to flip the card.
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
The rmdir command automatically removes a directory and all of its subdirectories and files.
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
To move files you can use the mv command.
Question
In the FHS, the ____ directory contains most system commands and utilities.

A)/usr
B)/root
C)/bin
D)/home
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
In a file's mode, if a permission is unavailable, a(n)____ character replaces its position in the mode.

A)*
B)+
C)?
D)-
Question
You can use wildcard metacharacters with the find command.
Question
The section of an inode that stores permissions is called the ____ of the file.

A)tail
B)head
C)mode
D)accessor
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
The chgrp command takes ____ arguments at minimum.

A)1
B)2
C)3
D)4
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
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
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
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 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 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
Match between columns
Command used to quickly create an empty file.
chmod
Command used to quickly create an empty file.
whoami
Command used to quickly create an empty file.
groups
Command used to quickly create an empty file.
chgrp
Command used to quickly create an empty file.
ping
Command used to quickly create an empty file.
chown
Command used to quickly create an empty file.
alias
Command used to quickly create an empty file.
umask
Command used to quickly create an empty file.
touch
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
chmod
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
whoami
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
groups
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
chgrp
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
ping
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
chown
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
alias
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
umask
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
touch
Command used to displays BASH shell aliases.
chmod
Command used to displays BASH shell aliases.
whoami
Command used to displays BASH shell aliases.
groups
Command used to displays BASH shell aliases.
chgrp
Command used to displays BASH shell aliases.
ping
Command used to displays BASH shell aliases.
chown
Command used to displays BASH shell aliases.
alias
Command used to displays BASH shell aliases.
umask
Command used to displays BASH shell aliases.
touch
Command used to view your group memberships and primary group.
chmod
Command used to view your group memberships and primary group.
whoami
Command used to view your group memberships and primary group.
groups
Command used to view your group memberships and primary group.
chgrp
Command used to view your group memberships and primary group.
ping
Command used to view your group memberships and primary group.
chown
Command used to view your group memberships and primary group.
alias
Command used to view your group memberships and primary group.
umask
Command used to view your group memberships and primary group.
touch
Command used to change the group owner of a file or directory.
chmod
Command used to change the group owner of a file or directory.
whoami
Command used to change the group owner of a file or directory.
groups
Command used to change the group owner of a file or directory.
chgrp
Command used to change the group owner of a file or directory.
ping
Command used to change the group owner of a file or directory.
chown
Command used to change the group owner of a file or directory.
alias
Command used to change the group owner of a file or directory.
umask
Command used to change the group owner of a file or directory.
touch
Command used to view your current user name.
chmod
Command used to view your current user name.
whoami
Command used to view your current user name.
groups
Command used to view your current user name.
chgrp
Command used to view your current user name.
ping
Command used to view your current user name.
chown
Command used to view your current user name.
alias
Command used to view your current user name.
umask
Command used to view your current user name.
touch
Command used to change the ownership of a file or directory.
chmod
Command used to change the ownership of a file or directory.
whoami
Command used to change the ownership of a file or directory.
groups
Command used to change the ownership of a file or directory.
chgrp
Command used to change the ownership of a file or directory.
ping
Command used to change the ownership of a file or directory.
chown
Command used to change the ownership of a file or directory.
alias
Command used to change the ownership of a file or directory.
umask
Command used to change the ownership of a file or directory.
touch
Command used to change the permissions for a certain file or directory.
chmod
Command used to change the permissions for a certain file or directory.
whoami
Command used to change the permissions for a certain file or directory.
groups
Command used to change the permissions for a certain file or directory.
chgrp
Command used to change the permissions for a certain file or directory.
ping
Command used to change the permissions for a certain file or directory.
chown
Command used to change the permissions for a certain file or directory.
alias
Command used to change the permissions for a certain file or directory.
umask
Command used to change the permissions for a certain file or directory.
touch
Command used to test network connectivity.
chmod
Command used to test network connectivity.
whoami
Command used to test network connectivity.
groups
Command used to test network connectivity.
chgrp
Command used to test network connectivity.
ping
Command used to test network connectivity.
chown
Command used to test network connectivity.
alias
Command used to test network connectivity.
umask
Command used to test network connectivity.
touch
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
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
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
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
Describe hard and symbolic links. What is the difference between them?
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
To create a(n)____________________ link, you use the -s option to the ln command.
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?
Question
Describe the SUID. Give an example of a command that typically has this permission set.
Question
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
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 5: Linux Filesystem Management
1
When using the chmod command, the mode rwx can be represented by the number ____.

A)0
B)1
C)7
D)8
C
2
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
3
The rmdir command automatically removes a directory and all of its subdirectories and files.
False
4
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 32 flashcards in this deck.
Unlock Deck
k this deck
5
Copying a file can be accomplished using the ____ command.

A)copy
B)mv
C)cp
D)cpy
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
6
To move files you can use the mv command.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
7
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 32 flashcards in this deck.
Unlock Deck
k this deck
8
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 32 flashcards in this deck.
Unlock Deck
k this deck
9
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 32 flashcards in this deck.
Unlock Deck
k this deck
10
You can use wildcard metacharacters with the find command.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
11
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 32 flashcards in this deck.
Unlock Deck
k this deck
12
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 32 flashcards in this deck.
Unlock Deck
k this deck
13
The chgrp command takes ____ arguments at minimum.

A)1
B)2
C)3
D)4
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
14
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 32 flashcards in this deck.
Unlock Deck
k this deck
15
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 32 flashcards in this deck.
Unlock Deck
k this deck
16
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 32 flashcards in this deck.
Unlock Deck
k this deck
17
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 32 flashcards in this deck.
Unlock Deck
k this deck
18
To create a hard link, you must use the ____ command.

A)ln
B)link
C)lnk
D)lk
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
19
In the FHS, the ____ directory is the root user's home directory.

A)/bin
B)/home
C)/boot
D)/root
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
20
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 32 flashcards in this deck.
Unlock Deck
k this deck
21
Match between columns
Command used to quickly create an empty file.
chmod
Command used to quickly create an empty file.
whoami
Command used to quickly create an empty file.
groups
Command used to quickly create an empty file.
chgrp
Command used to quickly create an empty file.
ping
Command used to quickly create an empty file.
chown
Command used to quickly create an empty file.
alias
Command used to quickly create an empty file.
umask
Command used to quickly create an empty file.
touch
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
chmod
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
whoami
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
groups
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
chgrp
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
ping
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
chown
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
alias
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
umask
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
touch
Command used to displays BASH shell aliases.
chmod
Command used to displays BASH shell aliases.
whoami
Command used to displays BASH shell aliases.
groups
Command used to displays BASH shell aliases.
chgrp
Command used to displays BASH shell aliases.
ping
Command used to displays BASH shell aliases.
chown
Command used to displays BASH shell aliases.
alias
Command used to displays BASH shell aliases.
umask
Command used to displays BASH shell aliases.
touch
Command used to view your group memberships and primary group.
chmod
Command used to view your group memberships and primary group.
whoami
Command used to view your group memberships and primary group.
groups
Command used to view your group memberships and primary group.
chgrp
Command used to view your group memberships and primary group.
ping
Command used to view your group memberships and primary group.
chown
Command used to view your group memberships and primary group.
alias
Command used to view your group memberships and primary group.
umask
Command used to view your group memberships and primary group.
touch
Command used to change the group owner of a file or directory.
chmod
Command used to change the group owner of a file or directory.
whoami
Command used to change the group owner of a file or directory.
groups
Command used to change the group owner of a file or directory.
chgrp
Command used to change the group owner of a file or directory.
ping
Command used to change the group owner of a file or directory.
chown
Command used to change the group owner of a file or directory.
alias
Command used to change the group owner of a file or directory.
umask
Command used to change the group owner of a file or directory.
touch
Command used to view your current user name.
chmod
Command used to view your current user name.
whoami
Command used to view your current user name.
groups
Command used to view your current user name.
chgrp
Command used to view your current user name.
ping
Command used to view your current user name.
chown
Command used to view your current user name.
alias
Command used to view your current user name.
umask
Command used to view your current user name.
touch
Command used to change the ownership of a file or directory.
chmod
Command used to change the ownership of a file or directory.
whoami
Command used to change the ownership of a file or directory.
groups
Command used to change the ownership of a file or directory.
chgrp
Command used to change the ownership of a file or directory.
ping
Command used to change the ownership of a file or directory.
chown
Command used to change the ownership of a file or directory.
alias
Command used to change the ownership of a file or directory.
umask
Command used to change the ownership of a file or directory.
touch
Command used to change the permissions for a certain file or directory.
chmod
Command used to change the permissions for a certain file or directory.
whoami
Command used to change the permissions for a certain file or directory.
groups
Command used to change the permissions for a certain file or directory.
chgrp
Command used to change the permissions for a certain file or directory.
ping
Command used to change the permissions for a certain file or directory.
chown
Command used to change the permissions for a certain file or directory.
alias
Command used to change the permissions for a certain file or directory.
umask
Command used to change the permissions for a certain file or directory.
touch
Command used to test network connectivity.
chmod
Command used to test network connectivity.
whoami
Command used to test network connectivity.
groups
Command used to test network connectivity.
chgrp
Command used to test network connectivity.
ping
Command used to test network connectivity.
chown
Command used to test network connectivity.
alias
Command used to test network connectivity.
umask
Command used to test network connectivity.
touch
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
22
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 32 flashcards in this deck.
Unlock Deck
k this deck
23
What are the three main structural sections of a Linux filesystem? Describe each section.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
24
How does the execute permission apply to a directory?
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
25
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 32 flashcards in this deck.
Unlock Deck
k this deck
26
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 32 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 32 flashcards in this deck.
Unlock Deck
k this deck
28
____________________ 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 32 flashcards in this deck.
Unlock Deck
k this deck
29
To create a(n)____________________ link, you use the -s option to the ln command.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
30
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 32 flashcards in this deck.
Unlock Deck
k this deck
31
Describe the SUID. Give an example of a command that typically has this permission set.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
32
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 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.