From 326cc8a262cbad579a1f1f858df768c00eb46518 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 24 Feb 2022 04:42:34 -0800 Subject: [PATCH] chsh: Fix `chsh -s SHELL` syntax (#7801) * It's `ch -s SHELL` to change your own shell Fixes #7800 * rephrase Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> * Use -s generically, --shell on Linux Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> --- pages/common/chsh.md | 6 +++--- pages/linux/chsh.md | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 pages/linux/chsh.md diff --git a/pages/common/chsh.md b/pages/common/chsh.md index 17f776e0d..d6fb26d14 100644 --- a/pages/common/chsh.md +++ b/pages/common/chsh.md @@ -7,13 +7,13 @@ `chsh` -- Change the current user's login shell: +- Change the login shell of the current user: -`chsh {{path/to/shell}}` +`chsh -s {{path/to/shell}}` - Change the login shell for a given user: -`chsh --shell {{path/to/shell}} {{username}}` +`chsh -s {{path/to/shell}} {{username}}` - List available shells: diff --git a/pages/linux/chsh.md b/pages/linux/chsh.md new file mode 100644 index 000000000..def8fa9fa --- /dev/null +++ b/pages/linux/chsh.md @@ -0,0 +1,20 @@ +# chsh + +> Change the user's login shell. +> More information: . + +- Change the current user's login shell interactively: + +`chsh` + +- Change the current user's login shell: + +`chsh --shell {{path/to/shell}}` + +- Change the login shell for a given user: + +`chsh --shell {{path/to/shell}} {{username}}` + +- List available shells: + +`chsh --list-shells`