Question

Hi I beed this assignment to be in a script in linux from codio. Can someone...


Hi I beed this assignment to be in a script in linux from codio. Can someone please help me step by step thank you.

Overview: In this milestone, you will demonstrate your ability to create a basic script in Linux. Review the Final Project Guidelines and Rubric document to see how this milestone will prepare you for the scripting portion of the project. You will perform this milestone in Codio in the unit called “Milestone 2: Scripting.” You will create this script with the vi editor. The script will combine multiple commands and simplify a repeatable task. Your script should be named “Milestone2_[your initials].bash.” When you complete this milestone, you will download a copy of your script and upload it to Brightspace. Refer to the Codio instruction set for information on how to download your history log file.
Prompt: Your script and your Linux directory structure should demonstrate that you have correctly written the script to accomplish the critical elements below. Specifically, the following critical elements must be addressed:
I. Create a File: Demonstrate your ability to utilize a Linux command to create a text file. Create this file in the workspace directory: a. A text file showing the current month, day, and time (Title this fileTime_File.txt.)
II. Create a Directory: In this section of your project, you will demonstrate your ability to execute Linux commands to organize the Linux directory structure.
a. In the workspace directory, create a new directory titledCOPY.
III. Modify and Move: Demonstrate your ability to utilize Linux commands to copy a file to a different directory and rename it.
a. Copy the Time_File.txt file from the workspace directory to the COPY directory.
b. Append the word COPY to the file name.
IV. Execute the Script: Complete and execute the newly createdscript.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

step 1: create a file name called with "cat Milestone2_Yalla.sh",

step 2: then open the file using "vi Milestone2_Yalla.sh"

step 3: paste the below contents and

#!/bin/bash
date >> Time_File.txt
mkdir COPY
mv Time_File.txt COPY
cd COPY
mv Time_File.txt Time_File_COPY.txt

step 4: execute the script file in linux environment using ./Milestone2_Yalla.sh.

MINGW64:/d/a/COPY pbiyyam@LBNL10247 MINGW64 /d/a Milestone2_Yalla.sh* pbiyyam@LBNL10247 MINGW64 /d/a $ cat Milestone2_Yalla.sh #!/bin/bash date >> Time_File.txt mkdirCOPY mv Time_File.txt COPY cd COPY mv Time_File.txt Time_File_cOPY.txt pbiyyam@LBNL10247 MINGW64 /d/a $ ./Milestone2_Yalla.sh pbiyyam@LBNL10247 MINGW64 /d/a $ 1s COPY/ Milestone2_Yalla.sh* pbiyyam@LBNL10247 MINGW64 /d/a cd COPY/ pbiyyam@LBNL10247 MINGW64 /d/a/COPY $ 1s Time_File_COPY. txt pbiyyam@LBNL 10247 MINGW64/d/a/COPY $ cat Time-File-COPY. txt Sat, Oct 13, 2018 9:00:15 PM pbiyyam@LBNL10247 MINGW64 /d/a/COPY

Add a comment
Know the answer?
Add Answer to:
Hi I beed this assignment to be in a script in linux from codio. Can someone...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • IT 255 Milestone Two Guidelines and Rubric Overview: In this milestone, you will demonstrate your ability...

    IT 255 Milestone Two Guidelines and Rubric Overview: In this milestone, you will demonstrate your ability to create a basic script in Linux. Review the Final Project Guidelines and Rubric document to see how this milestone will prepare you for the scripting portion of the project. You will perform this milestone in Codio in the unit called "Milestone 2: Scripting." You will create this script with the vi editor. The script will combine multiple commands and simplify a repeatable task....

  • I'm stuck, if you can provide the code I can put it into the BASH environment...

    I'm stuck, if you can provide the code I can put it into the BASH environment Executing tasks: In this section of the project, you will demonstrate your ability to execute Linux commands to create files and create and organize the Linux directory structure. At the end of this section, you will create a log file that will include a list of all the commands you used to complete these steps. VII. In the workspace directory, create new directories titled...

  • Create any Linux (Ubuntu, Debian, Kali etc) Virtual Machine on your computer. A shell script is...

    Create any Linux (Ubuntu, Debian, Kali etc) Virtual Machine on your computer. A shell script is a sequence of shell commands written in an executable script file. Executing this file instructs the shell to execute all commands in the order of their appearance in the script file. There is several shell scripting tutorials available on the web, e.g. search by entering the keywords Linux shell script tutorials. Go through one of these tutorials and then write a shell script that...

  • (In Linux) 1. Create a file to write to from your script and save it as...

    (In Linux) 1. Create a file to write to from your script and save it as “.txt”. 2. Write the following information to the file that you created in Step 1: Today's date Your full name Your student ID The name of your course What directory you are in File permissions of the file that you created that allow everyone to read, write, and execute The long list of files in your current directory, providing all items and their process...

  • There are multiple options for text editors in Linux: vi, Nano, vim, etc. My favorite is...

    There are multiple options for text editors in Linux: vi, Nano, vim, etc. My favorite is vi. Demonstrate that you are able to use a text editor. File copy, move, and removal. Try not to rely on “cd” commands. Go to your Labs directory. Use one command to finish each step, provide screenshots of commands and results.

  • Problem 1 Write a BASH script to create a user account from the Linux system on...

    Problem 1 Write a BASH script to create a user account from the Linux system on which your script is run. The script should process two positional parameters. First positional parameter is supposed to be a string with a user name (e.g., user_name) Second positional parameter is supposed to be a string with a user password (e.g., user_password) In your script: Check if two positional parameters were passed to your script when it was invoked If NOT, print an appropriate...

  • Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following...

    Using Kali Linux, the Windows Linux Sub-System, or another Debian based Linux distribution, perform the following tasks based on the Linux Fundamentals lecture. For this lab, take screenshots for all major steps completed to illustrate that each task was successfully completed the same method as would be used for other labs). Tasks: 1. Create a new user named Billy Bob using the command linter face 2. Add Billy Bob to the sudoers group 3. Update and upgrade your Linux distribution...

  • Hi, I need help for solving Linux question. . 1.Using the proper text editor, create a...

    Hi, I need help for solving Linux question. . 1.Using the proper text editor, create a shell file called by (your name), your enrollment number, your program and the courses you study. Use the appropriate variables and display the above to the standard output (screen). . 2. Write A Shell Script to perform the following: Display the files and directories Print the date in 24 hour format Display the System id Display the current working directory Print the status of...

  • Could you help me do the commands from nmber 16 to 21 For this assignment, you...

    Could you help me do the commands from nmber 16 to 21 For this assignment, you will: Unpack a tar archive. Change the unpacked files. Repack the files into a new tar archive. Turn in your new tar archive. Details Do not use an editor unless it specifically states to edit the file. By "editor" I mean vim, gedit, pico, etc. Despite its name, we don't consider sed to be an editor in this assignment, so you may use it...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT