My command line skills are limited but it's something like:
nano ~/.bitcoin/bitcoin.conf
This will open the file for editing or create it and open it for editing if it doesn't exist. This will happen in your terminal window (not GUI). Change the path if your bitcoin data is elsewhere.