Ubuntu: (http://stackoverflow.com/questions/20447974/prolog-programming-in-ubuntu) В терминала: swipl -s file.pl