How to save and exit from Scala SBT after writing the program



Currently I am doing Hands-on on Scala to build a jar file by using SBT, written a simple program (src/main/scala/.orderRevenue.scala) and not able to save & quit. Would like to know what is the appropriate command to come out of the Itversity console (for ex: dgadiraju@gw01:~/scalademo/retail )


object OrderRevenue {

def main(args: Array[String]) = {
val orderItems = Source.fromFile("/data/retail_db/order_items/part-00000").getLines
val orderRevenue = orderItems.filter(oi => oi.split(",")(1).toInt == 2).
map(oi => oi.split(",")(4).toFloat).
reduce((t, v) => t + v)