Deck 3: Managing Files and Directories
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
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/50
Play
Full screen (f)
Deck 3: Managing Files and Directories
1
The Linux file system is similar to Windows.
False
2
The command-line prompt varies depending on the shell.
True
3
The * wildcard is used to represent zero or more characters.
True
4
When deleing files in Linux, a confirmation message is displayed as a precaution.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
When you move a file to a new location, it remains in the original directory.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Which type of file can be stored on one machine and used by multiple users on other machines?
A) Static
B) Variable
C) Shareable
D) Unshareable
A) Static
B) Variable
C) Shareable
D) Unshareable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Files in the /boot directory are considered to be ____ files.
A) static
B) variable
C) shareable
D) unshareable
A) static
B) variable
C) shareable
D) unshareable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
Which command is used to switch to other directories?
A) sw
B) cd
C) chg
D) mv
A) sw
B) cd
C) chg
D) mv
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Which symbol represents the user's home directory?
A) ~ (tilde)
B) / (slash)
C) $ (dollar sign)
D) ! (exclamation point)
A) ~ (tilde)
B) / (slash)
C) $ (dollar sign)
D) ! (exclamation point)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
To navigate to a directory above your current directory with the relative method, you use ____.
A) a forward slash (/)
B) a back slash (\)
C) one dot (.)
D) two dots (..)
A) a forward slash (/)
B) a back slash (\)
C) one dot (.)
D) two dots (..)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
Which directory doesn't have a parent directory?
A) /bin
B) root (/)
C) /etc
D) /boot
A) /bin
B) root (/)
C) /etc
D) /boot
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
To enable the Bash shell command completion feature, press the ____ key.
A) B
B) C
C) Tab
D) Shift
A) B
B) C
C) Tab
D) Shift
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Which command is used to list file and subdirectories in the Linux directory structure?
A) ls
B) list
C) fs
D) lfs
A) ls
B) list
C) fs
D) lfs
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
What is the command syntax that almost all Linux commands follow?
A) command -options -argument
B) command -options argument
C) command -arguments -option
D) command -arguments option
A) command -options -argument
B) command -options argument
C) command -arguments -option
D) command -arguments option
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
Which ls command option lists all files including hidden files?
A) -F
B) -A
C) -f
D) -a
A) -F
B) -A
C) -f
D) -a
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Hidden files have names that always start with a(n) ____.
A) underscore (_)
B) period(.)
C) slash (/)
D) h
A) underscore (_)
B) period(.)
C) slash (/)
D) h
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
Which output column of the ls command displays the filename?
A) The first column
B) The second column
C) The seventh column
D) The eighth column
A) The first column
B) The second column
C) The seventh column
D) The eighth column
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
Which command illustrates how to obtain helpful documentation for the ls command?
A) man ls
B) help ls
C) doc ls
D) info ls
A) man ls
B) help ls
C) doc ls
D) info ls
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Which method of navigating man pages will repeat the previous search in the reverse direction?
A) Press b or backspace
B) Press \ (backward slash)
C) Press r
D) Press R
A) Press b or backspace
B) Press \ (backward slash)
C) Press r
D) Press R
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Which wildcard character is used to represent only one character?
A) Asterisk (*)
B) Exclamation point (!)
C) Question mark (?)
D) Tilde (~)
A) Asterisk (*)
B) Exclamation point (!)
C) Question mark (?)
D) Tilde (~)
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
What is the simplest way to create a file in Linux?
A) Use the open command.
B) Use the create command.
C) Use the touch command.
D) Use the new command.
A) Use the open command.
B) Use the create command.
C) Use the touch command.
D) Use the new command.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
Which command is used to remove empty directories?
A) rm
B) rmdir
C) empty
D) del
A) rm
B) rmdir
C) empty
D) del
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Before removing a directory containing files, you must run the ____ command to delete the files.
A) del
B) rm
C) wipe
D) clr
A) del
B) rm
C) wipe
D) clr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
A(n) ____ is a data structure that stores all information (such as file permissions, ownership, and file type) about a file except the actual data and filename.
A) directory
B) inode
C) hard link
D) symbolic link
A) directory
B) inode
C) hard link
D) symbolic link
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
The benefit of creating a(n) ____ is that you can link files that are on separate partitions or even different computers.
A) directory
B) inode
C) hard link
D) symbolic link
A) directory
B) inode
C) hard link
D) symbolic link
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
If you use the su command without an argument, it defaults to the root user, which changes the prompt to a ____ symbol.
A) ~
B)#
C) $
D) %
A) ~
B)#
C) $
D) %
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
A(n) ____________________ is the way files are stored and organized to simplify access to data.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
The ____________________ simply indicates where to enter commands.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
When working with pathnames in Linux, the ____________________ path method states the full pathname starting from the root (/).
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
In Linux, a(n) ____________________ represents letters and characters used to specify a filename for searches.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
____________________ are files that point to data on the hard drive.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
Match each statement with an item
-Contains the mount point for removable media.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-Contains the mount point for removable media.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
Match each statement with an item
-Contains shared libraries that are loaded when a program starts.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-Contains shared libraries that are loaded when a program starts.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Match each statement with an item
-Contains device files such as the CD/DVD-ROM drive.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-Contains device files such as the CD/DVD-ROM drive.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
Match each statement with an item
-Contains the Linux kernel and static files needed to boot the computer.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-Contains the Linux kernel and static files needed to boot the computer.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
Match each statement with an item
-Contains sharable, read-only applications and files.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-Contains sharable, read-only applications and files.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
Match each statement with an item
-Contains static configuration files, which are also unshareable files meaning they're local to the machine.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-Contains static configuration files, which are also unshareable files meaning they're local to the machine.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
Match each statement with an item
-This directory should not contain subdirectories.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-This directory should not contain subdirectories.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
Match each statement with an item
-Contains static sharable add-on software package.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-Contains static sharable add-on software package.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Match each statement with an item
-An optional directory.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
-An optional directory.
A) /bin
B) /boot
C) /dev
D) /etc
E) /home
F) /lib
G) /media
H) /opt
I) /usr
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Compare the Windows file system to the Linux file system.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Describe one benefit of Filesystem Hierarchy Standard (FHS).
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
Why is a basic understanding of Filesystem Hierarchy Standard (FHS) a valuable tool for Linux administrators and users?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
Describe how to open a terminal window in the KDE and GNOME desktops environments.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Why is learning the pwd (print working directory) command essential?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
When working with pathnames in Linux, explain the difference between using two dots and one dot in the pathname.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
Discuss how file types are indicated onscreen.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
What is POSIX?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
When should you update (touch) important files and scripts you have created?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
What is the main difference between the cp command and the mv command?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck