How to use ‘cp’ command to exclude a specific directory?
I want to copy all files in a directory except some files in a specific sub-directory. I have noticed that cp command didn’t have the –exclude option. So, how can I achieve this? 19 s 19 rsync is fast and easy: rsync -av –progress sourcefolder /destinationfolder –exclude thefoldertoexclude You can use –exclude multiples times. rsync … Read more