create a directory terminal code example Example 1: how to create a directory in terminal mkdir new-folder Example 2: create folder in terminal mkdir *Name of Directory*