The hometown hero in this case, is sudo. A four letter word is the solution to those awe struck moments, staring at an error with no suggested solution. The word sudo is written inline with the command, for example:
sudo /path/ProgramToEditWith/ (note: there is a space b/w the two paths) /filepath/filename.ext
Take note, there are many other things that can be done with sudo, as I like to say, google it!
Useful commands:
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /filepath/filename.extThe command 'sudo' will allow a user to act as a superuser/root, upon submission of password. The user will use TextEdit to edit selected file path, with root privileges. Note: There is a space between the two paths
sudo cp /path/file.ext /newpath/filename.extIn this case, the user is also given root privileges, but not to open a file, but copy it. This may overwrite the file, or create a new one, in the same directory or a new one.

No comments:
Post a Comment