$ echo 'mkfile() { mkdir -p "$(dirname "$1")" && touch "$1" ; }' >> ~/.bashrc
$ source ~/.bashrc
$ mkfile /your/directory/yourFile.txt
$ ls -FR thesis
chapter_1/
thesis/chapter_1:
section_1/
thesis/chapter_1/section_1:
subsection_1/
thesis/chapter_1/section_1/subsection_1: