About 85,300 results
Open links in new tab
  1. How do I create a copy of a directory in Unix/Linux?

    I want to recursively create a copy of a directory and all its contents (e.g. files and subdirectories).

  2. Linux cp command to copy a folder to current directory

    Apr 14, 2015 · I am wondering if there is an identical command for copying a folder to current directory like it did using the old MS-DOS. Let's say my current directory location is: /var/www/ …

  3. Copy files from one directory into an existing directory

    You can get around the dir1/.* /hidden files problem by cd-ing into the directory you want to copy from, and then referring to it as .. So, if you want to copy all files including hidden files from a …

  4. How to copy a directory from local machine to remote machine

    54 I am using ssh to connect to a remote machine. Is there a way i can copy an entire directory from a local machine to the remote machine? I found this link to do it the other way round i.e …

  5. How to copy in bash all directory and files recursive?

    I have script: find ./SourceFolder/ -maxdepth 4 -exec cp -R '{}' ./DestFolder/ \; SourceDir contains also sub-folders. Problem that in DestFolder not only all tree, but in up level all another levels …

  6. linux - Find and copy files - Stack Overflow

    10 You need to use cp -t /home/shantanu/tosend in order to tell it that the argument is the target directory and not a source. You can then change it to -exec ... + in order to get cp to copy as …

  7. linux - How to use 'cp' command to exclude a specific directory ...

    Jan 3, 2011 · I want to copy all files in a directory except some files in a specific sub-directory. I have noticed that cp command didn't have the --exclude option. So, how can I achieve this?

  8. linux - Copy folder structure (without files) from one location to ...

    Dec 29, 2019 · Original close reason (s) were not resolved I want to create a clone of the structure of our multi-terabyte file server. I know that cp --parents can move a file and it's …

  9. How to copy a directory with symbolic links and resolve them?

    May 18, 2014 · I would like to recursively copy the contents of a directory which contains symbolic links (symlinks) as well as normal files with a Bash / Shell Script. I don’t know how to copy the …

  10. Copying files based on modification date in Linux - Stack Overflow

    Feb 4, 2021 · 34 I want to copy the last three months' files from one directory to another directory, but I could find only listing the files by using the following command. find . -mtime -90 -ls How …