How can I use UNIX command-line codes embedded in Elixir code?

I’ld like to use it for more access to the OS and files

It sounds like you’re looking for System.cmd/3

iex> System.cmd("echo", ["hello"])
{"hello\n", 0}