Skip to content
Myr

Recommend use of `sudo -v` over `sudo echo`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`sudo -v` (or `sudo --validate`) updates the sudo credentials cache without running any commands. It's slightly safer than `sudo echo` under the unlikely chance that `~/.local/bin/echo` (or elsewhere on the PATH) could be set to something malicious.

authored by Anthony Som · committed by David Peter · parent 2784b7f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.md+1 added-1 removed