Files and Directories
Missions: Using command line shell
File vs Directory
Before learning about shell commands, you should know about files and directories.
A file is a collection of data that is stored on disk and that can be manipulated as a single unit by its name.
A directory is a file that acts as a folder for other files. A directory can also contain other directories (subdirectories); a directory that contains another directory is called the parent directory of the directory it contains.
A directory tree includes a directory and all of its files, including the contents of all subdirectories. (Each directory is a “branch” in the “tree.”) A slash character alone (‘/’) is the name of the root directory at the base of the directory tree hierarchy; it is the trunk from which all other files or directories branch.
Click here to learn about paths and the difference between absolute and relative paths.