What is differs in Linux path
/etc/passwd
../etc/passwd
/../etc/passwd
are these path same?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
/etc/passwdis the same as/../etc/passwdin recent Linux kernels.The LVS automatically adds entries for
"."and".."to directories and, for"/", they both point to"/"‘s inode.../etc/passwdit’s a relative path, so it depends on the process current working directory.If the cwd is
"/"or"/etc", then they all point to the same file.See also: Canonicalization