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.
Use the following command: cd .. The ".." indicates the parent of the current directory
pwd - means print working directory, which is always the current directory.
1. The most straightforward way to create a create a subdirectory in the current directory is mkdir name where name is the name of the new directory. 2. Another way is to move a directory and its descendants from somewhere else: mv path name where path is an absolute or relative pathname for an existing directory hierarchy, and name is the directory name it will be given in the current directory. 3. Various utilities for unpacking archives may create directories as they execute; for example cpio, tar, unzip etc.
chdir() PHP function helps in changing the current directory.
./sampleprog
The two links are for the current directory (.) and the parent directory (..). This is allow for easy directory traversal.
All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path All you need is the PWD(Print Working Directory) command, this will list your current directory absolute path
mkdir LABS
CD /
The 'current directory' is where you are in this moment, the 'standard directory' is where something usually is (quite vague definition, isn't it?)... for example, the standard directory for the apache configuration file is /etc/apache, for temporary files it is /tmp
cd dirReplace "dir" with the name of your directory.