How to create file at specified directory with touch command

linux, touch

Solution

Try

touch ../my_directory/file

it won't create ../my_directory though, but I think this is not what you asked for.

Problem

In Linux the `touch`-command creates files. But it always creates it in the current directory. How can I create files in a specified directory? For example ``` touch file ../my_directory ```

Original source