move all subfolders to parent folder linux code example Example: move all subfolders to parent folder linux find . -maxdepth 1 -exec mv {} .. \;