Deck 5: Linux Filesystem Management
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Match between columns
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/32
Play
Full screen (f)
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
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
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
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)#
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)-
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
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
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
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
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
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
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
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
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
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
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
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
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