make a new file directory with chmod in bash code example Example: linux create directory with permissions mkdir –m777 DirM