The home directory is the location that you will be logged into and use when saving files and other activities. It also contains a number of files that are used by the login process and the process has to be able to go to some known location to find them.
The root directory is /. The home directory is /home/user.
The default home directory is /home/user (where "user" is the username), sometimes shortened to "~".
"cd" with no directory takes you to your home (login) directory. In a path, ~ (tilde) means your home directory, ~usr means the home directory of user usr. For example, "cp ~/foo ~john" copies file foo from your home directory to john's.
The root directory is the top level directory of the entire file system. Every branch starts from there. The current working directory is where you happen to be in the tree at the moment. If the root is always "/" and my process is in the directory /usr/local/bin/test/data, then the root directory is still "/" and my working directory is currently /usr/local/bin/test/data
It is the Home Directory.
Use the 'cd' command without any target; that always puts you in the home directory which becomes by default the working directory.
/home Or, a user's home directory will usually be /home/<username>. For example, say your user name is jsmith: /home/jsmith
the command 'cd ~' will get you there .
In Unix, the parent directory is the directory that contains the current directory. It is represented by the symbol .. (two dots). When navigating the file system, you can use this symbol to move up one level in the directory hierarchy. For example, if you are in /home/user/documents, the parent directory would be /home/user.
To return to your Home directory from any location in the terminal, you can use the command cd ~. Alternatively, you can simply use cd without any arguments, which also takes you back to your Home directory. Both commands are effective for navigating directly to your Home directory regardless of your current location in the filesystem.
cd /q2-jan14
Current directory/Sub-directory **************************************** The current directory is simply the directory a user is currently in - for instance: when in the Home directory, or the Music directory, and so on. A sub directory is another directory inside a main directory - for instance: in the Music Directory - Jazz, Elkie Brooks, Classical, are examples of three sub directories.