visudo

Safely edit the sudoers file. More information: <https://www.sudo.ws/docs/man/visudo.man>.

Debian Debian
RUN apt-get update && \ apt-get install -y sudo
Ubuntu
RUN apt-get update && \ apt-get install -y sudo
Alpine
RUN apk add sudo
Arch Arch Linux
RUN pacman -S --noconfirm sudo
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y sudo
CentOS
RUN yum install -y sudo
Fedora
RUN dnf install -y sudo
Raspbian
RUN apt-get update && \ apt-get install -y sudo
click the source code to copy install visudo on any operating system with command-not-found.com