linux: which is the right way to copy folder? -
i want copy folder ajax_search
, path: /home/thejobco/public_html/jccore/ajax_search/
inside foler:/home/thejobco/public_html/demo/typo3conf/ext/
, should run command way:
cp -r /home/thejobco/public_html/jccore/ajax_search/ /home/thejobco/public_html/demo/typo3conf/ext/
or
cp -r /home/thejobco/public_html/jccore/ajax_search/ /home/thejobco/public_html/demo/typo3conf/ext
i familiar window, not unix/linux, put /
after ajax_search
, know way ajax_search/
, shows ajax_search
folder, not know should put /
after ext
or not? can explain me right way copy folder? thanks
with cp
, if destination directory exists , not use trailing slash on source-dir, then putting copy of source-dir inside dest-dir; can problem when forgot destination directory exists.
you should include trailing slash, make obvious cp
trying copy directory name new directory name, , not copy directory into existing one, if exists.
Comments
Post a Comment