How to stop OSX from issuing a warning for sudo command in terminal?

I just updated OSX Yosemite, and every time I execute the sudo , the OS issues this warning before asking for the password:

 WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. 

How to silence this warning?

+5
source share
1 answer

To remove the warning, open the sudoers file:

sudo visudo

Add this line (to save it neatly, right after another Defaults ):

 Defaults:al !lecture 

I tried to set it only "once" ( Defaults lecture = once ), but it seemed to be ignored.

+3
source

Source: https://habr.com/ru/post/1205215/


All Articles