Tagged Questions
4
votes
2answers
168 views
How can I copy a file to a new location, creating the directory as well
I want to cp a file to another directory but that directory doesn't exist yet.
So I would do:
mkdir /new_place
cp the_file /new_place
Can I do this in one?
I imagine something like cp the_file -m ...