File System Navigation Flashcards
The Linux filesystem is an “_____ ______” of directories and files, with a root directory called “/”
Inverted Tree
Every process has a….?
Current working directory, often called its “cwd”.
The pwd command ______ the bash shell’s cwd.
Reports
The cd command ______ the bash shell’s cwd
Changes.
Files can be referenced through either absoulte or…?
relative references.
Red Hat Enterprise Linux X graphical enviroment uses what to navigate file systems…?
Nautilus
Nautilus can be found by…?
- 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.)
By default, Nautilus browser sidepane includes….?
a “hotlist” of commonly used directories.
Typing _____ converts the location buttons to text entry.
CTRL+L
Each Linux process (i.e. , program, command) is assigned a ______ ____when it runs.
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)
The default directory is referred to as the….?
Current working directory, or cwd, for the process.
A process is first assigned a cwd by…?
the parent process which starts it. (however, a process is not locked into a particular cwd the whole time it runs.)
When needed, a process can ______ its cwd to another directory before continuing its work.
change.
One of the processes found running on a Linux system is…?
the command shell.
Command prompts are produced by the…?
command shell, the process which is responsible for reading and interpreting your commands.
The default command shell for Red Hat systems is …?
the bash (Bourne-again shell) command.
Bash keeps track of its …?
cwd while it runs. (Just like any other process)
The cwd affects the…?
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)
Keeping track of your bash cwd is important and can be done by…?
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)
cd (change directory) command changes….?
the currrent directory from the command prompt.
Usage : cd [DIRECTORY]
if not specified the DIRECTORY defaults to the user’s home directory
Because navigating through directories is so important, special abbreviations are available for referencing certain directories….
Symbol Meaning . The current working directory .. The parent directory ~ The user's home directory - The previous working directory
Absoulte references of the location of a file start with a (/) and give the…?
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.)
Realtive reference to a file location does not…?
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)
All directories in Linux contain two special entries, the . and the .. directories, that represent the…?
current and parent directories, respectively. (This is a use of realtive reference)