how to copy whole directory in linux code example Example: copy folders linux cp -R source_dir destination_dir #example cp -R /etc /etc_backup