The TC Shell Lab Exercises

Lab 1—Getting Started

  1. What does the init process do?

  2. What is the function of the login process?

  3. How do you know what shell you are using?

  4. How can you change your login shell?

  5. Explain the difference between the .tcshrc, .cshrc, and .login files. Which one is executed first?

  6. Edit your .tcshrc file as follows:

    1. Create three of your own aliases.

    2. Reset your prompt with the host machine name, time, username.

    3. Set the following variables and put a comment after each variable explaining what it does.

Example 10.87.
noclobber # protects clobbering files
						# from redirection overwriting
history
ignoreeof
savehist
prompt2
  1. Type the following:

    								source .tcshrc
    							

    What does the source command do?

  2. Edit your .login file as follows.

    1. Welcome the ...

Get Linux Shells by Example 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.