Home > OS >  Ubuntu system, how to copy the contents of a folder to a new folder?
Ubuntu system, how to copy the contents of a folder to a new folder?

Time:10-02

Use cp -r or use cp -r cp -- recursive command, (you can use the man cp view, command explanation is as follows: copy directories recursively recursive copy directory),
An "chestnut"

Use the ls view/home/content under Linux, found that did not exist in sh named folder,
To switch to the shell and view the content directory:
How to copy the folder under the shell content to the new file,
Do not need to create a new folder, and then make the following operation,
Cp -r/home/Linux/shell/home/Linux/sh
CD./sh; LSLLS

CodePudding user response:

CD./sh; ls

CodePudding user response:

- r and r are not the same, copy the entire folder or cp -r or rsync

CodePudding user response:

Thank you, beginners Linux, hair stick son happy
  • Related