If youve compiled it on the pi then you can open a new text document in the cgminer folder. Then wrote your command line in “./cgminer etc etc etc” save it as a “.sh” file then right click and change the permissions to make it executable. Then doible click and select open in terminal.