cp

Aliases: 
  • copy
  •  
    Parameters:
    Name Type Required Default Hint
    path string true The file or directory source
    newPath string true The new name file or directory location
    recurse boolean false false If true, copies the subdirectories, otherwise only the files in the source directory.
    filter string false * A directory copy filter string that uses "*" as a wildcard, for example, "*.cfm"

    Command Usage

    Copy a file or directory.

    Create a copy of sample.html in the current directory and call it test.html

    cp sample.html test.html
    Create a copy index.cfm in another directory with the same name
    cp index.cfm testing/index.cfm
    Create a copy of a directory
    cp foo/ bar/