Hello,
The command 'cp -r' is used to copy files recursively from one position to another position in Linux. I found this command also works well in FreeBSD. However the '-r' option is not mentioned in the man page of 'cp', although there is an equivalent option '-R'. So, I was wondering whether is it safe to use 'cp -r' in FreeBSD.
Additionly, to copy an entire directory, we need to make sure the endmost '/' of a directory is omitted in 'cp -R'. Is there any way to work around this? (That means keep the '/' and copy the whole directory)
Thanks.
The command 'cp -r' is used to copy files recursively from one position to another position in Linux. I found this command also works well in FreeBSD. However the '-r' option is not mentioned in the man page of 'cp', although there is an equivalent option '-R'. So, I was wondering whether is it safe to use 'cp -r' in FreeBSD.
Additionly, to copy an entire directory, we need to make sure the endmost '/' of a directory is omitted in 'cp -R'. Is there any way to work around this? (That means keep the '/' and copy the whole directory)
Thanks.