Linux Directories and Sub Directories

Started by thiruvasagamani, Sep 05, 2008, 05:08 PM

Previous topic - Next topic

thiruvasagamani


Subdirectory A directory within the current directory.

Parent directory The directory above the current one. Every directory except the top level has a parent. If you are in the /usr/spool directory, then /usr is the parent.

Home directory A user's personal directory. For example, if your user name is hermie, your home directory is /home/hermie. The user normally has complete control over all files stored in directories beneath the home directory. Exception: If the root user copies a file to your home directory, root still
To navigate your Linux file system, there are several terms you should understand.

Current directory The directory you are in at a given time, sometimes called the current working directory. The pwd (print working directory) command will tell you the name of the current directory.
owns and controls that file.

Root directory The top of the file system, denoted by a slash. Only subdirectories appear below this directory. Don't confuse this with /root, the home directory for the root user. When speaking, always refer to / as "the root directory" and to /root as "slash root."

Absolute file name A file name that is valid no matter where you are in the file hierarchy. In practice, this means it must start with a slash and specify the full path to the file. For example, /home/hermie/recipes/sludge_fudge is an absolute file name, but sludge_fudge is not.

Relative file name A file name that specifies a file relative to the current directory. For example, if you were in hermie's home directory, /home/hermie/, you would reference that healthy fudge recipe as recipes/sludge_fudge.
Thiruvasakamani Karnan