linux move all subdirectories to another folder code example Example: ubuntu move folder to another directory sudo mv /root/folder1 /home/folder2/