Getting Started with Linux
Last updated
Last updated
The / is the directory is the root file, and the root file is the root home folder.
The etc directory has the configuration files for almost everything.
Absolute Pathing: An absolute path provides the complete location of a file or directory from the root directory. It starts from the root /
and specifies every directory in the path to the target file. For example, /home/user/docs/file.txt
is an absolute path.
Relative Pathing: A relative path describes the location of a file or directory based on the current working directory. It does not start from the root but instead navigates from the current directory using .
(current directory) and ..
(parent directory). For example, if you're in /home/user/
, the relative path to docs/file.txt
is simply docs/file.txt
or ./docs/file.txt
.