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

1 Expert Approved Answer
Step: 1 Unlock

To create a Linux script that fulfills these requirements you need to use a text editor like nano or ... View full answer

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!