Using Korn Shell |
|
| History |
Using the shell history is useful if you don't want to retype commands
that you have already typed. In ksh, once you have set up the history in
your .profile, just hit the escape key and then use keys corresponding to
vi commands to get back to the command that you want to execute.
k = go up For example, let's say that you have typed three commands so far:
unixprompt >ls -al Now let's say that you want to use the command wcwho -re someuser, but don't want to have to retype all of that again. You would use these steps to execute the command:
For a more advanced example, let's say that you wanted to type wcwho -re someotheruser, but didn't want to have to type the wcwho -re part again. You would use these steps to execute and edit the command from your history:
As you use ksh, you will learn more and more tricks and all of this will seem easy to you even though it may be difficult at first. To help you in your study of ksh, refer to the manual entry for ksh. The command that you would type to access the page (from an hp) is: unixprompt >man ksh |
| Exporting Your Display |
Unlike csh and tcsh, which use the command "setenv", ksh uses the command "export" to export display windows from other workstations. However, if you are using an EWS workstation, you simply need to type:
ssh remote_machine_name |
| Other Features of ksh |
Most of the widely used features of ksh including customizing your prompt are implemented in the .profile. Please see the page on using a .profile for more information. |
| For further information on UNIX Shells one can look at: |
|---|
|