base-cp

来源:互联网 发布:米库数据 编辑:程序博客网 时间:2024/04/30 20:42

copy files and directories

       cp [OPTION]... SOURCE DEST       cp [OPTION]... SOURCE... DIRECTORY       cp [OPTION]... --target-directory=DIRECTORY SOURCE...

-R,-r,--recursive

-v --verbose  explain what is being done

-u --update  copy when the source file is newer or the destination file is missing

-s --symlolic-link links instead of coping



Example:

cp *.txt newdir

cp -r /home/hope/files/* /home/hope/backup

     copy all files directories in files to ..


原创粉丝点击