{ 3 comments… read them below or add one }

1 Baljaa September 19, 2013 at 10:33 am

Lab 2
Complete the following steps. Write your answer in the space provided.
1. Which specific shell characters have special meaning to the shell?
_____________________________________________________________
2. Name some common shell metacharacters.
_____________________________________________________________
3. Which metacharacter is a shell substitute for the home directory of a
user?
_____________________________________________________________
4. Navigate to your home directory from your current working
directory using the appropriate special metacharacter.
5. Which two metacharacters are often referred to as wildcard
characters?
6. Make sure you are in your home directory. List the contents of all the
files and directories in your home directory starting with d using a
wild card entry.
7. Which character do you use to match a single character, excluding a
leading period?
_____________________________________________________________
8. Which character or characters would you use to match a set or range
of characters?
_____________________________________________________________
9. Which character or characters would you use to have the shell ignore
the special meaning of metacharacters?
_____________________________________________________________
10. What are file descriptors?
_____________________________________________________________
_____________________________________________________________
11. Which symbol or symbols do you use to redirect output and append
the output to a file?
_____________________________________________________________
12. Which command redirects standard error messages?
_____________________________________________________________
13. Which symbol or character do you use to connect two or more
commands on a single command line?
_____________________________________________________________
14. Define a variable. Name the kinds of variables used in Korn shell
programming.
_____________________________________________________________
_____________________________________________________________
15. Which command do you use to display shell variables and their
current values?
_____________________________________________________________
16. Which command do you use to display a list of previously executed
commands in the shell?
____________________________________________________________________________________________________________________________________________________________17. What is an initialization file?
_____________________________________________________________
_____________________________________________________________
18. List the four user initialization files described in this module.
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
19. Edit your ~/.profile file to set the ENV variable to $HOME/.kshrc.
Also add /etc to your path.
20. Edit your ~/.kshrc file to set the prompt to be hostname and the
current directory.
21. Log out and log in again to check that your settings work.

Reply

2 sivakrishna September 27, 2013 at 8:27 am

thank you so much

Reply

3 pankaj November 4, 2014 at 3:21 pm

how can i set or change the environment variables permanently.

Plz help.

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: