Linux commands doubt

I am doing some hands on basic linux commands . Can anyone please help me out with this : How do i create a file in a specific directory using touch command? using touch command we can create a file but how to create it in a specific directory.?

Give the full or relative path to the directory, e.g.

touch /opt/my-directory/file.txt
touch ~/my-files/file2.txt
touch ../file3.txt

The directory must exist, and you must have write permission in it.

All linux commands that take a file as an argument will also accept a path to a file.