B
B
BlastPit2018-05-31 23:27:31
linux
BlastPit, 2018-05-31 23:27:31

How is a dot in the path interpreted?

Can you explain what dot means in file path?
. - points to the current directory
.. - the directory above or the parent directory of the source directory
What does this path mean?

/bin/linux-x86-64/./test.pid

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-05-31
@Rsa97

Special Entries. and .. are not just "interpreted", they are actual directory entries about the current (.) and parent (..) directories. So a dot in the path means "same directory" and can be painlessly removed from the string.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question