A directory is a location for storing files on your computer.
Directories are found in a hierarchical file system, such as Linux, MS-DOS, OS/2, and Unix.
In the picture to the right is an example of the tree command output that shows all the local and subdirectories (e.g., the “big” directory in the cdn directory).
What are the directories in Linux?
Linux Directories
- / is the root directory.
- /bin/ and /usr/bin/ store user commands.
- /boot/ contains files used for system startup including the kernel.
- /dev/ contains device files.
- /etc/ is where configuration files and directories are located.
- /home/ is the default location for users‟ home directories.
What is your current directory in Linux?
Current Directory Definition. The current directory is the directory in which a user is working at a given time. The command prompt in bash, which is the default shell on Linux, contains the name of the user, the name of the computer and the name of the current directory.