Article 6ES5R Can I create multiple directories and files in each directory with just one command?

Can I create multiple directories and files in each directory with just one command?

by
ABIDRAZ4
from LinuxQuestions.org on (#6ES5R)
Can I create multiple directories and files in each directory with just one command?

I tried this "mkdir one ;cd one ;touch file1 ;mkdir two ;cd two ;touch file2" it worked but I am not sure if there is another easier way to do this?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments