You can use the ‘cp’ command in Linux to copy a directory with all it’s files and accompanying sub directories with the following option:
cp -r directoryname newdirectory
Make sure that you do not tab through so as to create the backslash (I don’t know why that it, but it won’t work otherwise).
That’s it. Using the option ‘r’ will make a copy for you of any directory with all subdirectories and its contents intact.
Incoming search terms:
- linux copy directory and sub
- linux copy subdirectories
- copying directories and subdirectories in linux
- copying subdirectories linux
- linux copy directory with subdirectories
- linux copy directory and subdirectories
- how to copy a directory and subdirectories in linux
- linux copy directory
- copy directory and sub linux
- copy directory and sub directory linux
No related posts.
