How do I find the absolute path of a file in Linux?

How do I find the absolute path of a file in Linux?
Answer
To obtain the full path of a file, we use the readlink command. readlink prints the absolute path of a symbolic link, but as a side-effect, it also prints the absolute path for a relative path.
 

Tìm kiếm

Back
Top