System() function

hello all,
is there a function like system() of C/C++ in Kotlin?
don’t like method of java because i want to build native program.exe

How about https://man7.org/linux/man-pages/man3/system.3.html

import platform.posix.system

fun main() {
    system("ls -la")
}
1 Like

i hava got it.Thanks