DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
Shell Processes
«Prev
Next»
Shell Programming
Shell Processes
login Shell
Define Unix Process
Starting Other Shells
Parent Child Processes
3 Ways Shell Script
Specify Shell Script
Unix Path Variable
Shell Script Conclusion
Embedded Commands
Defining embedded Execution
Embedded Command Syntax
Application Embedded Execution
Date Command Options
forLoop Embedded Execution
embedded Command Conclusion
Unix Commands
Find Command
Unix File Types
wc Command
sort Command
read in Variables
Sleep Clear Commands
Grep Command
coption to grep
tee Command
Shell Script
Debugging Shell Scripts
Tracing Shell Scripts
Handling Errors
Printing Progress
Writing Shell Functions
Running Shells from the Command Line - Exercise
Starting other shells
Running shells from the command line
Objective:
Practice running a new shell from your shell account
Exercise scoring:
This exercise is auto-scored and worth two points.
Instructions
Susan, this exercise looks GREAT. However, one tiny aspect of it may have to be changed slightly. That is the fact that I think the UNIX labs (the accounts that we give people) use the C shell. That means that that shell would already be running when people log in, so the shell we ask them to start running should be something different. Does this make sense? Can you please change the exercise accordingly? It should not take much. The results will also need tobe changed slightly.
ok
In this exercise, you will practice creating new interactive shells from the command line. Follow the instructions listed below.
Login to your shell account.
Run the following commands to see which processes you are running.
ps
Verify that your current shell is listed by looking up the PID number of your current shell.
echo $$
Do you see a correspondence between the number displayed by this echo command and the output of ps?
Now, create a Korn shell
/bin/ksh
The Korn shell is now running in the foreground. Your prompt should change to indicate that you are running a Korn shell.
Verify that both your shells are running. Your login shell should be running in the background and the Korn shell in the foreground.
ps
echo $$
Do you see that the number produced by the echo command matches the Korn shell listed in the ps output?
Logout of your account. To do this, use the exit command to exit the Korn shell first. This will bring your login shell into the foreground. You may then exit your login shell and this should log you off of the machine.
exit
exit
Submitting your exercise
This exercise is auto-scored; when you complete the exercise, click the
Submit
button to receive full credit.
Submit