BOURNE SHELL LAB EXERCISES

Lab 8: Getting Started

1:What process puts the login prompt on your screen?
2:What process assigns values to HOME, LOGNAME, and PATH?
3:How do you know what shell you are using?
4:Where is your login shell assigned? (What file?)
5:Explain the difference between the /etc/profile and .profile file. Which one is executed first?
6:Edit your .profile file as follows:
  1. Welcome the user.

  2. Add your home directory to the path if it is not there.

  3. Set the erase function to the Backspace key using stty.

  4. Type: profile

    What is the function of the dot command?

Lab 9: Shell Metacharacters

1:Make a directory called wildcards. Cd to that directory and type at the prompt:
									touch ab abc a1 a2 a3 all a12 ba ba.1 ba.2 filex filey AbC ABC
									ABc2 abc ...

Get UNIX® Shells by Example, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.