From 415d4834eab0ec192a44dd8354d46d7df0f7ea8f Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Mon, 27 Nov 2017 17:09:29 +1100 Subject: [PATCH 1/6] sudo: add example for interactive shell --- pages/common/sudo.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/sudo.md b/pages/common/sudo.md index 40ccb40fb..02d930444 100644 --- a/pages/common/sudo.md +++ b/pages/common/sudo.md @@ -17,3 +17,7 @@ - Repeat the last command as sudo: `sudo !!` + +- Run an interactive shell with superuser privileges + +`sudo -i` From bcd4efd8857b3d75d70f3395ca94bffca2bfd841 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Mon, 27 Nov 2017 17:19:13 +1100 Subject: [PATCH 2/6] Revert "sudo: add example for interactive shell" This reverts commit 415d4834eab0ec192a44dd8354d46d7df0f7ea8f. --- pages/common/sudo.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pages/common/sudo.md b/pages/common/sudo.md index 02d930444..40ccb40fb 100644 --- a/pages/common/sudo.md +++ b/pages/common/sudo.md @@ -17,7 +17,3 @@ - Repeat the last command as sudo: `sudo !!` - -- Run an interactive shell with superuser privileges - -`sudo -i` From 4c9f12072e3c2db369810857d81ed248c09af196 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Mon, 27 Nov 2017 17:48:29 +1100 Subject: [PATCH 3/6] sudo: Add example to run an interactive shell --- pages/common/sudo.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/sudo.md b/pages/common/sudo.md index 40ccb40fb..1f7703875 100644 --- a/pages/common/sudo.md +++ b/pages/common/sudo.md @@ -17,3 +17,7 @@ - Repeat the last command as sudo: `sudo !!` + +- Run an interactive shell as sudo: + +`sudo --login` From 38788de92a2f6ed7fc47826cbd48e9d1b720fd82 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Mon, 27 Nov 2017 18:14:18 +1100 Subject: [PATCH 4/6] sudo: Change to use flag -i for macOS --- pages/common/sudo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/sudo.md b/pages/common/sudo.md index 1f7703875..79a2db628 100644 --- a/pages/common/sudo.md +++ b/pages/common/sudo.md @@ -20,4 +20,4 @@ - Run an interactive shell as sudo: -`sudo --login` +`sudo -i` From 8d002cd406281c13e2ce888053e633cde9a7c691 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Wed, 29 Nov 2017 10:59:03 +1100 Subject: [PATCH 5/6] sudo: Reword launch shell example --- pages/common/sudo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/sudo.md b/pages/common/sudo.md index 79a2db628..45a65ce62 100644 --- a/pages/common/sudo.md +++ b/pages/common/sudo.md @@ -18,6 +18,6 @@ `sudo !!` -- Run an interactive shell as sudo: +- Launch a shell with root privileges: `sudo -i` From 49468f7b4813bae8e643b4e202309de174489ce3 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 29 Nov 2017 08:57:56 +0530 Subject: [PATCH 6/6] sudo: changed wording to indicate default shell --- pages/common/sudo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/sudo.md b/pages/common/sudo.md index 45a65ce62..35380a060 100644 --- a/pages/common/sudo.md +++ b/pages/common/sudo.md @@ -18,6 +18,6 @@ `sudo !!` -- Launch a shell with root privileges: +- Launch the default shell with root privileges: `sudo -i`