Using command line to create bootable OS X USB drive
The copy/paste bits are fine, but you got your app path wrong... 

sudo /Volumes/MacBook/OS\ OS\ X\ Yosemite.app
should be
sudo /Volumes/MacBook/OS/Install\ OS\ X\ Yosemite.app

To be certain you have the correct path, Terminal allows drag &amp; drop. 


Type sudo, then space.  
Drag your Installer app to the Terminal  
Hit backspace once [terminal adds a space to your dropped path]
copy/paste the rest of the line /Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath  
Drag your Installer again [NO backspace this time]  
copy/paste --nointeraction