• This Linux mkdir command tutorial helps you learn how to make directories, optionally with permissions, with examples and Linux mkdir syntax.
  • The `mkdir` command is the answer! mkdir stands for “make directory”, and it’s one of the most useful Linux commands.
  • It is similar to using your mouse and keyboard to create new folders, but the mkdir command is used on the command line.
  • The mkdir command is an essential tool to learn how to use on your Linux system, especially when dealing with the terminal.
  • The mkdir command is very simple and has useful command options to make things more efficient. So let's see how to create directories in Linux terminal.
  • You’ll find a few of these options very helpful, although that isn’t to say that mkdir on its own doesn’t already cover a wide array of administration situations.
  • the -p option is also useful to ensure that a particular directory exists. The functionality of mkdir is described substantially through a reference to the mkdir().
  • mkdir command creates the folder if it does not exists. If the folder already exists then based on the option provided, it will decide whether to show error or not.
  • $ mkdir /tmp/newdir. ... $ mkdir -p Projects/ravesli.com/src/assets/images.
  • Now you know how to use ‘mkdir’. You can even use it to create a directory called ‘my_enemies’ if you’re into that sort of thing.