Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
- an alias named "bye" which terminates your Unix session.
- an alias named "longList" which accepts one or more files/directories and list them in long format.
- 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:
- display the contents of the file "myAliases".
- run: source myAliases
- run: touch xyz1 xyz2 xyz3 xyz4
- Type the following command to test your alias "longList": longList xyz[1-4]
- run: echo "date" > xyz1
- Type the following command to test your alias "rm": rm xyz?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started