mkdir -m 755 mydir

Category: File Operations

mkdir -m 755 mydir

Create a directory with specific permissions

Creates a directory and immediately sets its permissions. 755 means the owner can read/write/execute, and everyone else can read/execute.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.