Copy Hidden Files

 

Take below for example

 

 

  1. shopt -s dotglob  # glob will include hidden file & directories

     

  2. cp -frv /etc/skel/{,.[^.]}* .

     

  3. -T --no-target-directory

     

  4. cp -frv /etc/skel/. .

     

     

  5. rsync -rlptogDvz --progress --partial --stats --delete /etc/skel/ .

     

  6. find /etc/skel -mindepth 1 ! -name .bashrc -exec cp -r {} . \;

    -mindepth 1 will flatten directories

 

posted @ 2021-12-16 11:18  ascertain  阅读(41)  评论(0编辑  收藏  举报