Copy all files (include hidden files) to another folder in Ubuntu

·

1 min read

mkdir /home/<new_user>
cp -r /etc/skel/. /home/<new_user>

This will copy all files/folder recursively from /etc/skel in to the already existing folder created on the first line.