Getting Started with Linux
The grand world of Linux
Last updated
The grand world of Linux
Last updated
The / is the directory is the root file, and the root file is the root home folder.
As you can see in the image above, you can see the most common places where files are stored. Files do not have to be stored in this certain place, but generally, it is.
When navigating the Linux file system think of it as a File GUI, just in the command line. The full list of commands can be found in Comands so take a look at that and familiarize yourself with that. The most important part of this is getting hands-on experience. The next thing you will want to familiarize yourself with is Pathing statements. This will be extremely beneficial to you and will deepen your understanding of Linux.
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
.