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: ______________________ Q01) Create the directory structure as shown in the Pic1 and add

- $ 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 files

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!