DEV Community

Discussion on: Get to Know the Command Line: Basic Commands

Collapse
 
abregman profile image
Arie Bregman

Great post :)

It's worth mentioning that you can create several nested directories with -p this way:

mkdir -p /dir1/dir2/dir3

Also, for creating multiple files you can use the following syntax:

touch file{1..3} which will create file1 file2 and file3

Collapse
 
torianne02 profile image
Tori Crawford

Thank you so much for adding these to the discussion!! I was not aware of these two little tricks.