How do you run atom text editor on linux as sudo?

103 views Asked by At

I tried to run sudo linux atom with my file name as signup.php in xampp htdocs

sudo atom signup.php

And then I recieved the following error

mkdir: missing operand
Try 'mkdir --help' for more information.

Can someone please assist me

By using the sudo command I was expecting to open the file in atom as an elevated user it's just that when I use

atom signup.php

It works and opens up the file in the text editor only issue is that it asks for my password upon saving the file and when I enter it, it keeps on asking for it infinitely

0

There are 0 answers