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