Question: For this question, before you start recording your tasks do the following: Edit a text file myAliases to contain the following alias definitions: an alias

For this question, before you start recording your tasks do the following:

Edit a text file "myAliases" to contain the following alias definitions:

  1. an alias named "bye" which terminates your Unix session.
  2. an alias named "longList" which accepts one or more files/directories and list them in long format.
  3. an alias named "rm" that will prompt once before removing more than three files, or when removing recursively.

To activate your aliases, run: "source myAliases". Test your new aliases. Once your aliases work properly, start a new terminal window to start recording your session. At the end take a screenshot. Make the terminal window large enough to show your work.

Now perform the following tasks:

  1. display the contents of the file "myAliases".
  2. run: source myAliases
  3. run: touch xyz1 xyz2 xyz3 xyz4
  4. Type the following command to test your alias "longList": longList xyz[1-4]
  5. run: echo "date" > xyz1
  6. Type the following command to test your alias "rm": rm xyz?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!