cs160aCPcommands

  1. cp file1 file2
    copy file1 to file2. file2 is overwritten if it exists
  2. cp file1 [ . . . filen] dir
    copy one or more files to an existing directory
  3. cp -r dir1/. dir2
    copy everything in dir1 to dir2 (including hidden items)
  4. cp -r dir1 . . . dirn dir2
    copy one or more directories and their contents into the existing directory dir2
Author
Anonymous
ID
315587
Card Set
cs160aCPcommands
Description
cp and mv commands from cs160a Week 3
Updated