About 50 results
Open links in new tab
  1. What is the difference between a deep copy and a shallow copy?

    This answer explains copy by reference vs copy by value. Shallow copy vs deep copy is a concept that applies to collections. See this answer and this answer.

  2. How can I copy and paste content from one file to another?

    I am working with two files, and I need to copy a few lines from one file and paste them into another file. I know how to copy (yy) and paste (p) in the same file. But that doesn't work for different

  3. What is the difference between the 'COPY' and 'ADD' commands in a ...

    You should check the ADD and COPY documentation for a more detailed description of their behaviors, but in a nutshell, the major difference is that ADD can do more than COPY: ADD allows <src> to be …

  4. How do I copy a folder from remote to local using scp? [closed]

    The question was how to copy a folder from remote to local with scp command. ... But here is the better way for do it with sftp - SSH File Transfer Protocol (also Secure File Transfer Protocol, or SFTP) is a …

  5. Batch file to copy directories recursively - Stack Overflow

    Apr 3, 2021 · Is there a way to copy directories recursively inside a .bat file? Is an example of this available?

  6. How to copy a directory structure but only include certain files (using ...

    Jan 23, 2009 · As the title says, how can I recursively copy a directory structure but only include some files. E.g given the following directory structure: folder1 folder2 folder3 data.zip inf...

  7. How do I copy the contents of one stream to another?

    Oct 23, 2008 · What is the best way to copy the contents of one stream to another? Is there a standard utility method for this?

  8. linux - How can I copy the output of a command directly into my ...

    May 25, 2017 · How can I pipe the output of a command into my clipboard and paste it back when using a terminal? For instance: cat file | clipboard

  9. What are copy elision and return value optimization?

    Oct 18, 2012 · What is copy elision? What is (named) return value optimization? What do they imply? In what situations can they occur? What are limitations? If you were referenced to this question, you're …

  10. PyTorch preferred way to copy a tensor - Stack Overflow

    Mar 20, 2019 · From the pytorch docs Unlike copy_ (), this function is recorded in the computation graph. Gradients propagating to the cloned tensor will propagate to the original tensor. So while …