how to copy directory and its files code example Example: copy directory with files cp -r source_folder destination/path