Dot and Double Dots
Learn about the usage of dot and double dots in navigating the filesystem.
We'll cover the following
Using .
and ..
Two shortcuts help us work with files and directory paths when working on the command line: the dot (.
) and the double dot (..
).
Switch to the /var
directory and use the ls -alh
command to get a list of the files in the current directory, including the hidden ones:
$ cd /var
$ ls -alh
Take a look at the top two entries in the listing. Run the commands on the terminal below.
Get hands-on with 1200+ tech skills courses.