File System Navigation Flashcards

1
Q

The Linux filesystem is an “_____ ______” of directories and files, with a root directory called “/”

A

Inverted Tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Every process has a….?

A

Current working directory, often called its “cwd”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The pwd command ______ the bash shell’s cwd.

A

Reports

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The cd command ______ the bash shell’s cwd

A

Changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Files can be referenced through either absoulte or…?

A

relative references.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Red Hat Enterprise Linux X graphical enviroment uses what to navigate file systems…?

A

Nautilus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Nautilus can be found by…?

A
  • Double clicking the home icon found in the upper left-hand corner of the desktop.
  • by selecitng the Applications: Systems tools: File browser menu item. (If you prefer this view of Nautilus you can change the settings found under the edit menu, and click behaviour and then always open in browser windows.)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

By default, Nautilus browser sidepane includes….?

A

a “hotlist” of commonly used directories.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Typing _____ converts the location buttons to text entry.

A

CTRL+L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Each Linux process (i.e. , program, command) is assigned a ______ ____when it runs.

A

Default directory. (This is used to complete the FQN for any file whose name is not specified as an FQN to start with. This has two effects, first, it allows the process to refer to files more simply, without using tiresome long names, Second it allows the process to operate more flexibly since its actions depend in part on the default directory. Change the default directory, and the action of the process is changed)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The default directory is referred to as the….?

A

Current working directory, or cwd, for the process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A process is first assigned a cwd by…?

A

the parent process which starts it. (however, a process is not locked into a particular cwd the whole time it runs.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When needed, a process can ______ its cwd to another directory before continuing its work.

A

change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

One of the processes found running on a Linux system is…?

A

the command shell.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Command prompts are produced by the…?

A

command shell, the process which is responsible for reading and interpreting your commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The default command shell for Red Hat systems is …?

A

the bash (Bourne-again shell) command.

17
Q

Bash keeps track of its …?

A

cwd while it runs. (Just like any other process)

18
Q

The cwd affects the…?

A

commands you type at the command prompt, and becomes their cwd as they run. (In essence, then, the cwd of the bash shell is your cwd, and can be thought of as where you are within the system)

19
Q

Keeping track of your bash cwd is important and can be done by…?

A

The command prompt itself shows the last directory of the path to the cwd. or viewing the complete (or absoulte path to the cwd by using pwd (print working directory) command)

20
Q

cd (change directory) command changes….?

A

the currrent directory from the command prompt.
Usage : cd [DIRECTORY]
if not specified the DIRECTORY defaults to the user’s home directory

21
Q

Because navigating through directories is so important, special abbreviations are available for referencing certain directories….

A
Symbol Meaning 
. The current working directory  
.. The parent directory  
~ The user's home directory  
- The previous working directory
22
Q

Absoulte references of the location of a file start with a (/) and give the…?

A

FQN of the file. (That is, the absolute reference names each branch of the filesystem directory, tree, starting from/, that must be traversed to reach the file. Regardless of where you are in the filesystem, an absolute reference unambiguously identifies a specfic resource.)

23
Q

Realtive reference to a file location does not…?

A

describe a path to the file starting at /, but rathe describes a path starting from the current directory. (For example, if the cwd is /home/alice, then a relative reference to song1.midi might be website/songs/song1.midi. This is a realtive reference because it does not start with /. This reference only names the directories that must be traversed starting from /home/alice, not starting from /. In order to be vaild, a relative reference must start but naming a directory (or file) in the cwd)

24
Q

All directories in Linux contain two special entries, the . and the .. directories, that represent the…?

A

current and parent directories, respectively. (This is a use of realtive reference)