If you add the -p flag, you can create a directory with subdirectories in a single command
mkdir -p parentdir/childdir/etc
Web server failed to start. Port 8080 was already in use
lsof -i :<portNumber> | grep LISTEN