From c78e90ad7649c3b7ccec27e3a38eab7d3e01fb33 Mon Sep 17 00:00:00 2001 From: Janek <27jf@pm.me> Date: Tue, 21 Sep 2021 19:01:49 +0200 Subject: [PATCH] chsh: add interactive and --list-shells examples (#6555) --- pages/common/chsh.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/common/chsh.md b/pages/common/chsh.md index 34e794cd39..8b54ff3666 100644 --- a/pages/common/chsh.md +++ b/pages/common/chsh.md @@ -3,6 +3,14 @@ > Change the user's login shell. > More information: . -- Change the user's login shell: +- Change the current user's login shell interactively: -`chsh -s {{path/to/shell_binary}} {{username}}` +`chsh` + +- Change the login shell for a given user to Zsh: + +`chsh --shell {{/bin/zsh}} {{username}}` + +- List available shells: + +`chsh --list-shells`