How to get the absolute (full) path of a file in Linux?

You can use Linux readlink command to get the absolute (full) path of a file in Linux.

Example:

Create a new file and directory in your home directory:

Get the absolute (full) path of the file: