It is a command that has to be run with root/admin privileges, so just type "sudo mkdir <foldername>" and it will ask for a password to successfully run the command.
If you don't know why you're having trouble writing to /var/ then you shouldn't be trying. Only geeks should be there as you could seriously damage your machine messing around in there. Seriously!