Share this on (or read 4 comments/add one below):

4 comment

  1. 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.

  2. sir we have test environment for our testing but someone accidently delete the directory we want to restore it again . but as i know it is impossible if some thing delete from unix server it is impossible to recover. But we try to rebuild our test environment take data from live server but it is not configured with us bcoz we dont know the port no , configure ip etc so please guide us.

Leave a Comment