Question
Linux Essentials ASAP Please Q01) Create the directory structure as shown in the Pic1 and add files as indicated in the Pic1 (all those files
Linux Essentials ASAP Please
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: ______________________
Q02) Create folder called family inside of the personal folder and copy the to_do_list.txt to the family folder.
Answer: ______________________
Q03) Using a single command with wild cards, copy song.mp3, song.wav, 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 letter_of_engagement.txt file into needs_work.txt (make sure the file stays in the work folder).
Answer: ______________________
Q06) Move the personal folder and its content to the work folder.
Answer: ______________________
Q07) Copy the work folder and its content to the misc folder.
Answer: ______________________
Q08) Write the "grep" command that displays the lines from the /etc/passwd file that begin with any character but letter 't' and end with not a number. Make the command case insensitive.
Answer: ______________________
Q09) Write the complete bash script that will take a file/folder name (with or without path) as a command line argument. The script must verify that one command line argument value was given. If the value was not given, the script should display an error message and stop. If the value was given, then the script should state if that value is a valid file or a folder. If the value is not a valid file or a folder, then the script should state that such a file or folder does not exist.
Answer: ______________________
Q10) Use the "tar" command to create a compressed with gzip archive of the /tmp folder. The completed archive should be stored in your account home directory and the archive should be named tmp.tar.gz.
Answer: ______________________
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