Question: Using Linux Command line and terminal file editors. Write a script that : Print a message to the user displaying your information (Name and email).
Using Linux Command line and terminal file editors. Write a script that :
- Print a message to the user displaying your information (Name and email).
- Hint: echo
- Create a directory named "Script1"
- Navigate into the "Script1" Directory.
- create empty files named "f1", "f2" and "f3".
- Redirect the output of the command "ls" into the file "f1".
- Hint: ">"
- Add a long line of "______________________" into the "f2" file.
- Redirect output of "uname -a " command into f3.
- Combine these files into one file named "Output"
- Hint: Cat
- print a message to the user. "Script completed"
Hints:
- ( chmod +x Script ) the command will add executable permissions to your script file.
Submission
- Whole screen screenshot of your terminal and script next to each other. The terminal must show a sample of the script run.
- Script file.
Step by Step Solution
There are 3 Steps involved in it
To create a Linux script that fulfills these requirements you need to use a text editor like nano or ... View full answer
Get step-by-step solutions from verified subject matter experts
