First of all cd
to home directory using cd ~/
Then create a shell script file using nano mine.sh
Now add the following code replacing the required fields with original values.
#! /bin/bash
cd "xmrig/build" && eval "./xmrig -a cryptonight-lite --donate 1 -v 3 -o stratum+tcp://trtl.mine2gether.com:1115 -u TRTL_WALLET_ADDRESS -p WORKER_NAME"