diff --git a/.gitignore b/.gitignore index bb94ff69d..810939e66 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ _site .jekyll-metadata /node_modules /vendor +.idea/ \ No newline at end of file diff --git a/linux.md b/linux.md index 3bb925b7c..82cd89acc 100644 --- a/linux.md +++ b/linux.md @@ -11,3 +11,9 @@ title: Linux sudo visudo username ALL=(ALL) NOPASSWD:/sbin/restart whatever + +### Answer yes in a bash script + +```bash +yes | /your/command +```