I know you can do mkdir to create a directory and touch to create a file, but is there no way to do both operations in one go?
mkdir
touch
i.e. if I wa
In the special (but not uncommon) case where you are trying to recreate the same directory hierarchy, cp --parents can be useful.
cp --parents
For example if /my/long contains the source files, and my/other already exists, you can do this:
/my/long
my/other
cd /my/long cp --parents path/here/thing.txt /my/other