Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion to use sudo -e. #9

Open
cmdremily opened this issue May 15, 2023 · 1 comment
Open

Suggestion to use sudo -e. #9

cmdremily opened this issue May 15, 2023 · 1 comment

Comments

@cmdremily
Copy link

Using sudo -e (e for edit) instead of sudo nano has some benefits: It will use the user's preferences to pick an editor (nano by default on Pi IIRC) but it also copies the file to a temporary location and edits it there and then copies the edited copy back once you exit. This means that spurious saves do not affect the file being edited, and autosaves etc are not saved next to the target file, keeping your config directory clean.

@EricZimmerman
Copy link

nano is clearly the best choice and superior editor here...

/Runs away

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants