how to create a directory in linux using shell script code example Example 1: create directory linux mkdir /tmp/newdir Example 2: linux create directory mkdir ./folderName