Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux || should be able save data even after reboot If you are not already the root user, then switch to the root user using

Linux || should be able save data even after reboot
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
If you are not already the root user, then switch to the root user using the command sudo su - . As the root user, create a directory named /opt/midterm/info. Inside of this /opt/midterm/info directory perform the following. Create a file named course with the following content. This course is IT340! o Create a file named system with the following content. The system is: o Redirect the contents of the /etc/system-release file to the system file. Append to the file if it exists. Redirect the output of the date command to a file named date). Overwrite the file if it exists. o Create a file named greeting with the following content. Welcome to the midterm exam for IT340! Upload Choose a File . If you are not already the root user, then switch to the root user using the command sudo su - As the root user, create a directory named /opt/midterm/search There is a file named /opt/shakespeare.txt on the Linux instance. It contains 124456 lines of text representing all of William Shakespeare's work. Perform the following tasks as related to this file. Do not modify or delete this file as it may affect your results. o Print all of the lines within the /opt/shakespeare, txt file containing the text dainty. Send the standard output to a file named /opt/midterm/search/filter01.txt o Print all of the lines within the /opt/shakespeare, txt file containing both the text Romeo and the text Juliet. Send the standard output to a file named Vopt/midterm/search/filtero2.txt. o Print all of the lines within the /opt/shakespeare.txt file that end with the text more. Send the standard output to a file named /opt/midterm/search/filter83.txt. o Print all of the lines within the /opt/shakespeare, txt file that start with the letter D. Send the standard output to a file named /opt/midterm/search/Filter04.txt o Print all of the lines within the /opt/shakespeare, txt file that contain 4 consecutive vowels. Vowels are the characters a, e, 1.0, and u. The 4 consecutive vowels need not be the same. That is, aaaa, aart, and aeia are all considered 4 consecutive vowels. Send the standard output to a file named /opt/midterm/search/filters.txt. Upload Channel If you are not already the root user, then switch to the root user using the command sudo su As the root user, create a directory named /opt/midterm/regex There is a file named /opt/dictionary.txt on the Linux instance. It contains 143091 lines of text representing lowercase English words. Perform the following tasks as related to this file. Do not modify or delete this file as it may affect your results. o Print all of the lines within the /opt/dictionary.txt file containing a 5 letter word beginning with u and ending with y. Send the standard output to a file named /opt/midterm/regex/patternal.txt. o Print all of the lines within the /opt/dictionary.txt file containing an 11 letter word beginning with either u or w and ending in ly. Send the standard output to a file named Vopt/midterm/regex/patterno2.txt. Print all of the lines within the /opt/dictionary.txt file that contain the text bello. mello or yello. Send the standard output to a file named /opt/midterm/regex/pattern@3.txt. If you are not already the root user, then switch to the root user using the command sudo su As the root user, create a directory named /opt/midterm/access. Inside of this /opt/midterm/access directory perform the following. o Create a file named file01 with permissions rwxrwxrwx o Create a file named file with permissions rwxrw-r- o Create a file named file03 with permissions r-xr-xr- o Create a file named file84 with permissions rwsr-xr-x o Create a file named files with permissions rwsrwxr-t.. o Create a file named file86 with permissions r-xrwSr-t. - If you are not already the root user, then switch to the root user using the command sudo SU - There is a 1GB disk on your instance. It should be located at /dev/sda but it may not be. Please ensure you locate the only 1GB disk on the system. o Partition this disk into two partitions. One partition of size 128MB. One partition of size 768MB. o Create a filesystem on each partition. The 128MB partition should have an ext4 filesystem. The 768MB partition should have an xfs filesystem. o Update /etc/fstab to mount the partitions persistently. Add an entry to mount the 128MB partition to mnt/exam 1 Add an entry to mount the 768MB partition to /mnt/examez Mount the partitions immediately

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago