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`