Steps to run Type "chmod 777 sync" from the directory sync is downloaded in Type "./sync dir1 dir2" with your respective dir1 and dir2 This should run the program as expected