The mkdir command
Yaser Rahmati | یاسر رحمتی
The mkdir
command in Linux/Unix is used to create a directory.
Syntax
Examples:
Make a directory named
myfiles
.
Create a directory named
myfile
s at the home directory:
Create the
mydir
directory, and set its file mode (-m
) so that all users (a
) may read (r
), write (w
), and execute (x
) it.
Create the directory
/home/test/src/python
. If any of the parent directories/home
,/home/test
, or/home/test/src
do not already exist, they are automatically created.
Last updated