From 12c37fc02568a9b2c614e714bd0c42d2c2194cff Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Tue, 10 Jan 2023 02:35:58 +1000 Subject: [PATCH] chsh: refresh page (#7998) * Make grammar more general via using `a` * Delete chsh.md * Apply suggestions from code review Co-authored-by: Muhammad Falak R Wani * Enhance descriptions: - add mnemonics - replace `Print` with `List` * Use portable `--list-shells` counterpart * Update pages/common/chsh.md Co-authored-by: Muhammad Falak R Wani Co-authored-by: Muhammad Falak R Wani --- pages/common/chsh.md | 12 ++++++------ pages/linux/chsh.md | 20 -------------------- 2 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 pages/linux/chsh.md diff --git a/pages/common/chsh.md b/pages/common/chsh.md index d6fb26d141..36a6bc9a41 100644 --- a/pages/common/chsh.md +++ b/pages/common/chsh.md @@ -1,20 +1,20 @@ # chsh -> Change the user's login shell. +> Change user's login shell. > More information: . -- Change the current user's login shell interactively: +- Set a specific login shell for the current user interactively: `chsh` -- Change the login shell of the current user: +- Set a specific login [s]hell for the current user: `chsh -s {{path/to/shell}}` -- Change the login shell for a given user: +- Set a login [s]hell for a specific user: `chsh -s {{path/to/shell}} {{username}}` -- List available shells: +- [l]ist available shells: -`chsh --list-shells` +`chsh -l` diff --git a/pages/linux/chsh.md b/pages/linux/chsh.md deleted file mode 100644 index def8fa9fa3..0000000000 --- a/pages/linux/chsh.md +++ /dev/null @@ -1,20 +0,0 @@ -# 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`