A file system is the method an operating system uses to organize and store data on a storage device.
It defines how files are named, stored, and retrieved.
Docs:
A file is a named collection of data stored on the file system. Files contain data such as text, code, images, or other content.
The file name identifies the file within its directory.
Example: for the file wiki/file-system.md, the file name is file-system.md.
The extension is the suffix after the last . in the file name.
It indicates the file type or format.
Example: README.md has the extension .md.
The location of a file is its containing directory.
Example: for the file /home/user/project/README.md, the location is /home/user/project/.
The file path (without < and >).
Examples:
../README.md(relative path)~/.ssh/config(absolute path)
A directory (a.k.a. "folder" on Windows) is a special type of file that contains other files and directories.
Directories nest inside one another, forming a tree structure rooted at the root directory.
Examples:
../wiki(relative path)~/.ssh(absolute path)
The directory path (without < and >).
A subdirectory is a directory contained within another directory.
Example: for the path wiki/images/, images/ is a subdirectory of wiki/.
A path points to a location in the filesystem.
The path of a file or a directory (without < and >).
Starts from the root directory or the home directory.
Examples:
/home/inno-se-toolkit/Desktop/(Linux/macOS)C:/Users/inno-se-toolkit/Desktop/(Windows)
Starts from the current directory.
Examples:
backend/app/./docs/
The root directory is the top-level directory of the file system. All other files and directories are contained within it.
Its absolute path is /.
Shortcut for the absolute path for the user home directory /home/<user>/.
See <user>.
The relative path for the directory you are currently in.
Examples:
The relative path for the parent directory of the directory. The parent is always a directory.
Examples:
- For the directory
wiki/images/, the parent directory path iswiki/images/..which iswiki/.
The Desktop directory is the folder that corresponds to the desktop on your screen.
Windows: C:/Users/<user>/Desktop/ (see <user>)
Linux: ~/Desktop/ (see home directory (~))
macOS: ~/Desktop/
WSL: ~/Desktop/