From 3b758480db34c2096b589a1afa65189690bb84d3 Mon Sep 17 00:00:00 2001 From: Yulia Kostrikova Date: Thu, 17 Jan 2019 21:45:56 +0200 Subject: [PATCH 1/2] Linux commands --- .gitignore | 1 + linux.md | 3 +++ 2 files changed, 4 insertions(+) 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..a6a947f51 100644 --- a/linux.md +++ b/linux.md @@ -11,3 +11,6 @@ title: Linux sudo visudo username ALL=(ALL) NOPASSWD:/sbin/restart whatever + +### Answer yes in a bash script + yes | /your/command \ No newline at end of file From a18063bb9a0bd8281298116cd8ab615036019b2d Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Mar 2019 07:43:41 +0800 Subject: [PATCH 2/2] Update linux.md --- linux.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux.md b/linux.md index a6a947f51..82cd89acc 100644 --- a/linux.md +++ b/linux.md @@ -13,4 +13,7 @@ title: Linux username ALL=(ALL) NOPASSWD:/sbin/restart whatever ### Answer yes in a bash script - yes | /your/command \ No newline at end of file + +```bash +yes | /your/command +```