It is used to resolve and print the absolute path of a given symbolic link or file.
realpath myfile.txt
Converts a relative path to an absolute path.
realpath ../Documents
Converts a relative path to an absolute path.
realpath ../Documents