How to open and edit the file in the command line? I tried to use the command open
:
sudo open -e /etc/apache2/extra/httpd-vhosts.conf
but the file is Locked
and I can not change anything.
I need to edit a lot of text and use nano
or vim
is not very convenient.
sudo open -a TextEdit /etc/apache2/extra/httpd-vhosts.conf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With