不可直接写cp 某路径/.*,因为.开头的有个..,就是上一级目录。所以我会用下面命令:


find . -name ".*" -type f -o type d |while read L;do cp $L 另个目录;done