how to make a new directory code example Example 1: make directory in cmd mkdir folder-name Example 2: create directory linux mkdir /tmp/newdir