create folder using command in terminal code example Example 1: how to create a directory in terminal mkdir new-folder Example 2: linux terminal create folder mkdir mydirectory