create directory terminal linux code example Example 1: create directory linux mkdir /tmp/newdir Example 2: linux terminal create folder mkdir mydirectory