Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with the following milestone. If you can provide the commands so I c

ID: 3723309 • Letter: I

Question

I need help with the following milestone. If you can provide the commands so I can enter them into the bash environment. I want to enter them myself so I can become more familiar.

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.) Create a Directory: In this section of your project, you will demonstrate your ability to execute Linux commands to organize the Linux directory structure Il. a. In the workspace directory, create a new directory titled COPY III. Modify and Move: Demonstrate your ability to utilize Linux commands to copy a file to a different directory and rename it a. b. Copy the Time_File.txt file from the workspace directory to the CoPY directory Append the word COPY to the file name. IV. Execute the Script: Complete and execute the newly createdscript.

Explanation / Answer

1)

To create a empty file you can use the touch command.

So, touch filename.extension will create an empty file in the current directory. If you provide a path with filename then it will create the file at that location.

you can use date command which gives you the date and use can use desired configuration, which in your case looks something like date +"%B %d %H:%m:%S". then you can redirect the output to this to the file you created.

###############################################

2)

mkdir is used to create directory followed by the name of directory.

So, mkdir Copy will do.

############################

3)

cp is used to copy files.

cp source destination, so it will look something like this.

cp filename.txt copy/filenamecopy.txt ----------- observe how you can change the name of the file right while copying.

####################################

4)

There are various ways of execting a script. use chmod to give your script executable permissions and then use ./scriptname.sh