create directory with 777 permissions linux code example Example: linux create directory with permissions mkdir –m777 DirM