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
1 year ago 1 Answer 0 views

Answers ( 1 )

  1. 1 year 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