move file parent folder code example Example 1: linux move folder and subfolders to parent cd to/the/dir mv * ../ Example 2: linux move all files up a directory mv myfolder/* .