Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are the ‘dot’ and ‘dot dot’ files in Unix and Linux real files?

Do the special files . and .. actually exist and are stored/located in the file system as normal files, or are they interpreted/created only when accessed by the filesystem handlers?

  • . (current directory)
  • .. (parent directory)

My assumption is that they do not exist – otherwise, when you create symlinks or bind mounts, things would break.

like image 793
seamus murray Avatar asked Sep 18 '13 07:09

seamus murray


People also ask

What is dot and dot dot in Linux?

. ( dot) means the current directory you're in. .. (dot dot) means the parent directory of the current directory you're in.

What is the dot file in Linux?

Dotfiles are configuration files for various programs, and they help those programs manage their functionality. What sets them apart from regular files and directories is their prefix. Dotfiles are named that way because each file and directory starts with a dot ( . )

What is dot dot in Unix?

On Unix-like operating systems every directory contains, as a minimum, an object represented by a single dot and another represented by two successive dots. The former refers to the directory itself and the latter refers to its parent directory (i.e., the directory that contains it).

What is double dot and single dot in Unix and Linux?

In filesystems, we use the double dot (..) to access the parent directory, whereas the single dot (.) represents the current directory.


1 Answers

You are correct in your assumption. These files are merely there as an abstraction layer to navigate to and describe a resources location..

like image 166
Gung Foo Avatar answered Sep 28 '22 01:09

Gung Foo