1.

Can you explain (.) and (..) in Unix?

Answer»
  • Current directory (.): In Unix, (.) DENOTES the current directory. Using the COMMAND "cd ." (with a space between cd and dot), you will remain where you are.
  • Parent directory (..): In Unix, (..) denotes the parent of the current directory. Using the command "cd.." or "cd .." (with a space), you move the directory BACK to ONE directory. This is also known as moving to the parent directory. For instance, if you're in the /home/gourav directory, using the "cd.." command takes you back to the home directory.
gourav@scaleracademy:~$ pwd/home/gourav/localgourav@scaleracademy:~$ cd ../home/gourav


Discussion

No Comment Found