I know that if you have a file one.txt in ~/Documents and you cd ~/Documents then realpath one.txt will print:
~/Documents/one.txt.
However what if you want to print the path of a file in a different directory. For example, cd a/b and there is a file two.txt in directories a2/b2 then how does a person print the absolute path of two.txt by just passing two.txt to a command.
Looking to do something like realpath two.txt that works from a different directory.