How can I open a file using command line in crio workspace

I want to open file in editor using command line.
Actually I want to edit file with as sudo… now I have to change ownership of file to edit and run everytime (the config file)

Refer this : https://www.wikihow.com/Create-and-Edit-Text-File-in-Linux-by-Using-Terminal

1 Like

Thanks for Link, but I want to open the editor from command line, can I bind it with command ,.lets say some-keyword file.txt, so file.txt is opened in the editor already present