There are several editors that support Kotlin—Micro, Vim, NeoVim, Atom, and VS Code.
My go-to-use editor is Micro, (https://micro-editor.github.io/index.html). It is a fast and easy-to-use editor (sort of an over-powered Nano):
In your favourite editor, create a file named hello.kt and type the following code:
fun main(args: Array<String>) {
println("Hello, World!")
}
Now in your console, compile your program with this:
$ kotlinc hello.kt
To execute it, type this in your console:
$ kotlin HelloKt