Files such as /etc/profile etc. are ones that I want to edit (where you have to be root to edit them)
I don't want to use vi or pico in terminal, because it doesn't look too user-friendly...
I know I can use the command to open up TextEdit with root privileges in terminal
but when I addan alias to my bash file
and run
# edit
it doesn't work (I get told I need permission to save the file after editing.)
Any ideas?
I've tried running
#sudo edit
but that doesn't work either. ( I get "sudo: edit: command not found")
I don't want to use vi or pico in terminal, because it doesn't look too user-friendly...
I know I can use the command to open up TextEdit with root privileges in terminal
Code:
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit <filename>
Code:
alias edit="sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit"
and run
# edit
it doesn't work (I get told I need permission to save the file after editing.)
Any ideas?
I've tried running
#sudo edit
but that doesn't work either. ( I get "sudo: edit: command not found")