dot and dot dot

The special directory names dot, meaning this directory, and dot dot, meaning the parent directory, which exist in every directory.

In more detail

They let a relative path refer to where you are or climb upward, as in ./script.sh or cd .. to go up one level. The ./ prefix is how you run a program in the current directory, because the shell does not search the current directory unless PATH says so.

Related terms

Taught in

References