What is the difference between MD and MKDIR batch command?

Tomas Kubes picture Tomas Kubes · Sep 3, 2015 · Viewed 24.7k times · Source

Both command creates folders. I read that MKDIR can create even subfolders.

  • Is that only difference?
  • Why there are two commands doing the same?
  • Which one should I use?

Answer

aschipfl picture aschipfl · Sep 3, 2015

In addition to @npocmaka's answer, I want to provide a list of all such aliases, just for reference:

cd   =  chdir
md   =  mkdir
rd   =  rmdir
ren  =  rename
del  =  erase