Type this step by step:
cd /
rm -rfv tmp
mkdir tmp
cd var
rm -rfv log
mkdir log
rm -rfv tmp
mkdir tmp
Note:
cd is locate to directory; / is root
rm is remove; -rf for remove folder; -v is for view process; -rfv is combined of -rf and -v
mkdir is create folder