|
[Next] [Previous] [Up] [Top] [Contents]
3.7 File Maintenance Commands 3.7.1 cp - copy a fileCopy the contents of one file to another with the cp command.Syntax cp [options] old_filename new_filename Common Options -i interactive (prompt and wait for confirmation before proceeding) -r recursively copy a directory Examples % cp old_filename new_filename You now have two copies of the file, each with identical contents. They are completely independent of each other and you can edit and modify either as needed. They each have their own inode, data blocks, and directory table entries.
Introduction to Unix - 14 AUG 1996 [Next] [Previous] [Up] [Top] [Contents]
|