Annotated edit history of
ShellNotes version 4, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 4 |
AristotlePagaltzis |
1 |
InNeedOfRefactor |
| |
|
2 |
|
| 1 |
BenStaz |
3 |
A shell, also called "the command line", provides the traditional user interface for the Unix operating system and for Unix-like systems. Users direct the operation of the computer by entering command input as text for a shell to execute. |
| 3 |
BenStaz |
4 |
|
| |
|
5 |
!!Which Shell am I Using? |
| |
|
6 |
|
| |
|
7 |
* echo $SHELL |
| 1 |
BenStaz |
8 |
|
| |
|
9 |
!!Change A Users Login Shell |
| |
|
10 |
|
| |
|
11 |
Note : A normal user can only change their own login shell, whereas the super user can change the login shell for any user account. |
| |
|
12 |
|
| |
|
13 |
The syntax is : |
| |
|
14 |
|
| 2 |
BenStaz |
15 |
*chsh -s /path/to/shell/ ~[user_account~] |
| 1 |
BenStaz |
16 |
|
| 2 |
BenStaz |
17 |
So If I am a superuser and I want the login shell for user account 'staz' to be sh then I would type: |
| 1 |
BenStaz |
18 |
|
| |
|
19 |
*shsh -s /bin/sh staz |
| |
|
20 |
|
| |
|
21 |
Keep in mind a normal user can only change their login shell to one that is listed in ''/etc/shells''. |
| |
|
22 |
|
| |
|
23 |
!!/etc/shells |
| |
|
24 |
|
| |
|
25 |
This file contains the full pathname of valid login shells. An Example of its contents is shown below. |
| |
|
26 |
|
| |
|
27 |
<verbatim> |
| |
|
28 |
/bin/csh |
| |
|
29 |
/bin/sh |
| |
|
30 |
/usr/bin/es |
| |
|
31 |
/usr/bin/ksh |
| |
|
32 |
/bin/ksh |
| |
|
33 |
/usr/bin/rc |
| |
|
34 |
/usr/bin/tcsh |
| |
|
35 |
/bin/tcsh |
| |
|
36 |
/usr/bin/esh |
| |
|
37 |
/bin/dash |
| |
|
38 |
/usr/bin/screen |
| |
|
39 |
/bin/bash |
| |
|
40 |
/bin/rbash |
| |
|
41 |
</verbatim> |