Question
Q01) Create the directory structure as shown in the Pic1 and add files as indicated in the Pic1 (all those files are plain text files).
Q01) Create the directory structure as shown in the Pic1 and add files as indicated in the Pic1 (all those files are plain text files).
Answer: mkdir -p /dpara/Midterm
Q02) Create folder called completed inside of the work folder and copy the letter_of_engagement.txt to the completed folder.
Answer: ______________________
Q03) Using a single command with wild cards, move letter01.txt and letter02.txt to deleted folder.
Answer: ______________________
Q04) Using a single command with wild cards, remove the content of the deleted folder (do not remove the folder itself).
Answer: ______________________
Q05) Rename the to_do_list.txt file into completed_list.txt (make sure the file stays in the work folder).
Answer: ______________________
Q06) Move the work folder and its content to the misc folder.
Answer: ______________________
Q07) Copy the work folder and its content to the personal folder (please remember that you have moved the work folder into the misc folder in question 6).
Answer: ______________________
Q08) Write the "grep" command that displays the lines from the /etc/passwd file that begin with not a number and end with not a number. Make the command case insensitive.
Answer: ______________________
Q09) Write the complete bash script that will take two values as a command line arguments. The script must verify that two command line argument values were given. If the values were not given, the script should display an error message and stop. If the values were given, then the script should state if the values received are the same or not the same.
Answer: ______________________
Q10) Use the "tar" command to create an archive of the /etc folder. Do not compress the archive. The completed archive should be stored in the /tmp directory.
Answer: ______________________
- $ tree /home/ HomeDir /Midterm /home/ HomeDir/Midterm deleted misc song.mp3 song way personal letter01.txt letter02.txt work letter_of_engagement.txt to_do_list.txt E 4 directories, 6 filesStep 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