• This Linux mkdir command tutorial helps you learn how to make directories, optionally with permissions, with examples and Linux mkdir syntax.
  • It is similar to using your mouse and keyboard to create new folders, but the mkdir command is used on the command line.
  • This post will help you to create directory in linux and create folder in Linux or UNIX operating system with mkdir command in the linux System.
  • Just like other Linux commands, the syntax of the mkdir command is mainly divided into two groups – options and arguments
  • 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.
  • 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.
  • 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 bbb ccc bbb ve ccc isimlerinde yeni dizinler oluşturulur. mkdir -p asa/asa1/asa2 -p veya --parents : İhtiyaç olduğu şekilde tüm dizinleri meydana getirir.
  • 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.