2012年8月30日 星期四

複製備份資料夾指令:cp -r


 關鍵字:
win shell copy directory

網址:
http://commandwindows.com/xcopy.htm

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/EXCLUDE:file1[+file2][+file3]...] 
/E Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T.
XCOPY source /E

關鍵字:
ubuntu cp directory

網址:
http://askubuntu.com/questions/35779/what-does-cp-omitting-directory-mean

內容:
By default, cp copies only the direct files in, and not subdirectories in the directory. The message cp: omitting directory 'directory' warns you that the mentioned directory is not copied.
To do so, specify the -r (or --recursive) option:
sudo cp -r ~/Transfers/ZendFramework-1.11.4-minimal/library/Zend/* ~/public_html/cmsk.dev/library/

沒有留言:

張貼留言