cp

copy files and directories

copy
27
2
cp -r myDir /tmpCopy the directory myDir and all sub-directories to /tmp

details |

copy
16
4
cp --parents a/b/c existing_dircopies the file a/b/c to existing_dir/a/b/c, creating any missing intermediate directories.

details |

copy
11
0
cp myFile myFile2Copies myFile to myFile2

details |

copy
6
0
cp -i myFile1 myFile2Copy myfile1 over myFile2, if the file exists prompt for action

details |

copy
2
0
cp *.txt newdirCopy all txt files to newdir

6 years, 2 months ago john2 0 | details |

copy
3
0
cp file.doc file.doc.bakMake a backup copy of file.doc

6 years, 2 months ago john2 0 | details |

copy
6
0
cp -f myFile1 myFile2Overwrite file if it exists

details |

copy
0
0
cp -r /files/* /backupCopy all files and sub directories in /files to backup

6 years, 2 months ago john2 0 | details |