Question: Suppose there is a bash file named "`uploadme`" in the `/usr/bin` folder.

*I am using that file as a command*, and passing the **file names** as a **command line argument**, in any subdirectory of my home directory.

Suppose I am in the directory directory`/home/John/documents/`. In that directory, there is only one file that exists, named "Hello.txt". I will use the command as:

```
uploadme Hello.txt

```

So, the bash file will get one argument as "Hello.txt", but **I want the full path of the file without mentioning it in the argument.**

How can we do that?

Answer: 
The tool `realpath` does that:

```
echo $(realpath "$1")

```
You can use `readlink -f`:

```
readlink -f "$1"

```