Copy a folder in linux ubuntu

  Sep 15, 2016

I want to copy a directory from one place to another via the command line

Solved 0
2 years ago 1 Answer 0 views

Answers ( 1 )

  1. 2 years ago

    The -a flag is probably what you are looking for:

    cp -a /path/from /path/to

    The -a flag turns on recursive behaviour (which can also be done with the -R flag), and will also attempt to preserve metadata such as file ownership, permissions, timestamps, links, etc.

Your Answer