DEV Community

Discussion on: Discovering the terminal

Collapse
 
fennecdjay profile image
Jérémie Astor

Nice post.
I think you forgot multiples arguments to cp and mv

cp file0 file1 file2 .... fileX <target directory>
# or (for copying directories AND files)
cp -r dir0 dir1 ... file0 ... dir2 ... file1 <target_directory>
Collapse
 
brouberol profile image
Balthazar Rouberol

Thank you!

I'm not sure I'm following? Are you saying I forgot to cover the fact that cp and mv can take several arguments, or did I forget something in one of the snippets?

Collapse
 
fennecdjay profile image
Jérémie Astor

I said you did not cover that fact, not that something is missing in the snippets.
Cheers.

Thread Thread
 
brouberol profile image
Balthazar Rouberol

Indeed. I weighed whether I should mention it or not, and decided not to, as I cover reading a man synopsis, meaning readers can still figures this out if they need to.