To create a directory in Linux, Unix, or any variant, use the mkdir Linux and Unix command. For example, below we are creating a new directory called hope in the current directory. Once the directory is created, you can use the cd command to change the directory and move into that directory.