Question
I need the commands to be able to perform the following functions on Linux CLI. Please note: that the directories of NEW, BACKUP and OLD
I need the commands to be able to perform the following functions on Linux CLI. Please note: that the directories of NEW, BACKUP and OLD will already be created in a prior step.
plain text:
Script: You will write a basic script to create and back up files. 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 Firstname_Lastname.BASH. Your script and your Linux directory structure should demonstrate that you have correctly written the script to do the following:
1. Create files: In this section, you will demonstrate your ability to utilize various Linux commands to create text files. Create these files in the NEW directory. Ensure that the commands in your log file show that the following three text files were created using three different methods.
Create the following files:
A. A text file listing the quantity of operating system free space, titled Free_Space_Content.txt B. A text file listing the directory contents of the OLD folder, titled OLD_Content.txt C. A text file showing the current month, day, and time (Title this file Time_File.txt.)
2. Modify and Move files: Utilize Linux commands to copy files to a different directory and rename them.
A. Copy the following selected files from the OLD directory to the BACKUP directory. Ensure that you change the filename suffix from XXX_OLD to XXX_BACKUP. i. Free_Space_Content_OLD.txt ii. Directory_Content_OLD.txt iii. Time_File_OLD.txt
B. Move all files from the NEW directory to the BACKUP directory (no renaming necessary). Clean up the Linux directory structure by deleting the items in the NEW directory.
3. Execute the script: At this point, you will need to complete and execute the newly created script and complete a successful directory backup process.
4. Assess output: Finally, analyze the Linux directory structure and file contents to confirm successful script implementation. Ensure that you download your script and your Script_Assessment.txt file for submission.
A. Create a text file titled Script_Assessment.txt in the NEW directory; write a paragraph identifying the commands that you used in your script, and assess the success of your script.
Script: In this section of your final project, you will write a basic script to create and back up files. 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 Firstname_Lastname.BASH. Your script and your Linux directory structure should demonstrate that you have correctly written the script to do the following: XI. Create files: In this section, you will demonstrate your ability to utilize various Linux commands to create text files. Create these files in the NEW directory. Ensure that the commands in your log file show that the following three text files were created using three different methods. Create the following files A text file listing the quantity of operating system free space, titledFree_Space_Content.txt A text file listing the directory contents of the OLD folder, titled OLD_Content.txt A text file showing the current month, day, and time (Title this fileTime_File.txt.) A. B. C. XII Modify and Move files: Utilize Linux commands to copy files to a different directory and renamethem Copy the following selected files from the OLD directory to the BACKUP directory. Ensure that you change the filename suffix from XXX_OLD to XXX_BACKUP A. i Free SpaceContent OLD.txt ii Directory_Content OLD.txt i Time File OLD.txt Move all files from the NEW directory to the BACKUP directory (no renaming necessary). Clean up the Linux directory structure by deleting the items in the NEW directory B. XII Execute the script: At this point, you will need to complete and execute the newlycreated script and complete a successful directorybackupprocess XIV Assess output: Finally, analyze the Linux directory structure and file contents to confirm successful script implementation. Ensure that you download your script and your Script_Assessment.txt file for submission. A. Create a text file titled Script Assessment.txt in the NEW directory; write a paragraph identifying the commands that you used in your script, and assess the success of your scriptStep 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