linux home directory code example
Example 1: bash flatten directory
find /dir1 -mindepth 2 -type f -exec mv -t /dir1 -i '{}' +
Example 2: linux create directory
$sudo mkdir -m777 newFileName
777 is the permissions given to the file
For more info:( https://www.pluralsight.com/blog/it-ops/linux-file-permissions )