Examining the Filesystem Flashcards
In Linux, info and programs are stored on…?
Disks as files.
Files are grouped into…?
Directories, (Which can contain files and other directories, other OS often refer to directories as “folders”)
This hierarchy of directories containing directories is often referred to as …?
The “Directory Tree”
The base of the directory tree is a directory named simply…?
”/” (Referred to as “the root directory”.)
Files within the root directory can referred to as…?
/filename
In Red Hat Linux, root directory contains mostly other directories, such as…?
/etc
Files within these subdirectories may be referred to as…?
/etc/filename ( and the process continues for each new level of subdirectories. For example, the file network found in the directory sysconfig, which is in turn found in the directory etc, which is in the root directory /, can be referred to as /etc/sysconfig/network
Linux provides an easy way to get past a lot of work. Every process, including a user’s shell, uses a…?
Current working directory for context.
Files in a process’s current working directory can be referred to as…?
Simply filename, without the leading slash.
Files in subdirectories of the current working directory can be referred to as…?
dirname/filename, again without the leading slash. (For example, if a process’s current working directory were /etc, the network file referred to above could be referred to as sysconfig/network. If the working directory was /etc/sysconfig then the file could simply be referred to as network.)
File references relative to root directory always start with a leading /, and are called…?
absolute references.
File references relative to the current working directory start with something other than a /, and are referred to as…?
relative references.
Users use the ls command to …?
list the contents of a directory. (think of the ls as a shortening of the verb “list”.)
ls command, when called without arguments (i.e. without specifying a directory), lists the content of …?
the shell’s current working directory. (if using a colour terminal, the ls command also colourizes the filenames to help distinguish which of the directory contents are regular files (white), and which are directories (blue).
ls command is very flexible command that can provide…?
a lot of different information.