in Tips, Uncategorized

Terminal: Copy a folder

Similar to the way you would delete a folder with:

rm -rf folder_name

You must include -rf when doing a copy or cp

cp -r folder_name new_folder_name

-rf stands for recursive force. This will include the directory as well as all the files and subdirectories within.

Write a Comment