IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
openbsd:beginner_shell [2020/02/26 11:57]
net_wayfarer Created a skeleton page about using KSH
openbsd:beginner_shell [2020/04/20 04:49] (current)
net_wayfarer /* I don't like KSH at all */ fixed sentence structure. /* How do I change my password? */ section added. Minor changes to word use "user" to "$user".
Line 7: Line 7:
 You can switch to BASH if you are very familiar with BASH, however it is **recommended** to stick with KSH as KSH is more POSIX compliant. You can switch to BASH if you are very familiar with BASH, however it is **recommended** to stick with KSH as KSH is more POSIX compliant.
  
-That said, you *canalso make KSH behave more like BASH, which is more preferable than switching over to BASH.+That said, you //can// also make KSH behave more like BASH, which is more preferable than switching over to BASH.
  
 === I don't like KSH at all === === I don't like KSH at all ===
-If you prefer to stick to BASH the command ​would chsh and change where it shows Shell: from /bin/ksh to /​usr/​local/​bin/​bash. For example:+If you prefer to stick to BASHthe command ​''​chsh''​ would bring up a text editor. ​ From here, change where it shows Shell: from /bin/ksh to /​usr/​local/​bin/​bash. For example:
 <​code>​ <​code>​
-# Changing user database information for user+# Changing user database information for $user
 Shell: /bin/ksh Shell: /bin/ksh
 Full Name: user Full Name: user
Line 21: Line 21:
 To, To,
 <​code>​ <​code>​
-# Changing user database information for user+# Changing user database information for $user
 Shell: /​usr/​local/​bin/​bash Shell: /​usr/​local/​bin/​bash
 Full Name: user Full Name: user
Line 80: Line 80:
 alias __Y=`echo "​\005"​` ​    # end = ^e = end of line alias __Y=`echo "​\005"​` ​    # end = ^e = end of line
 </​code>"​ </​code>"​
 +
 +==== How do I change my password? ====
 +Simply execute ''​passwd''​ at prompt:
 +<​code>​
 +$ passwd
 +Changing password for $user
 +Old password:
 +New password:
 +Retype new password:
 +$
 +</​code>​
 +Your chosen new password should be longer than eight (8) characters.