"CP - R" command causes file error after copying the file on the command line

1、download tar.gz package from oracle office web site:

      $> wget https://download.oracle.com/java/17/latest/jdk-17_macos-aarch64_bin.tar.gz

2、unzip file use command "tar -zxvf jdk-17_macos-aarch64_bin.tar.gz"

$> tar -zxvf jdk-17_macos-aarch64_bin.tar.gz

3、copy jdk-17.0.1.jdk directory to another file directory then use file comparison tool it can show difference the file.

$> cp -r jdk-17.0.1.jdk /opt/java/

     in my mind copy a file or a file directory, the original file will be same with new file , but the command "copy -r" is not work well in terminal. attach picture that is compare the file berfore copy and after copy.

 

     i make the same operitation at interal core computer, the command "cp -r" is work well. this may be the M1 core proecess unit is work errror.

posted @ 2022-01-11 14:09  "++i"  阅读(64)  评论(0)    收藏  举报