DevOps virtualization
In this part of the assignment, you will practice finding text. You should utilize grep in every command.
Begin, by creating an ssh connection to scratch.cs.dixie.edu. Create a directory in your home directory called lab10. All the files you create below should be placed into this directory.
dmesg command find all the lines that have USB in them. Copy the whole command into a file called grep1.txtifconfig command find only the line that has the inet address for the Ethernet connection (IP of the machine). Copy your command to a file called grep2.txt. (So you might also grep for 144 or the full ip of your machine)sshd in the /etc/passwd file. Copy your command to grep3.txt.able in the /usr/share/dict/words file. The command should only find 2 instances.
grep4.txt.root inside any file in the /etc/ directory and output the line count of how many results you get. In the search we only want to include the whole word root not variants like chroot. Don’t forget to redirect errors.
grep5.txt.In this part of the assignment, you will practice finding files.
Begin, by creating an ssh connection to scratch. You should utilize commands such as find, which to complete the following tasks (use the man pages if you need to). If you are prompted to find all files on the system you should pass the -mount flag to the find command so that it will only search the local filesystem. For each of the tasks below, after you have found the correct command, copy the command to the appropriately named file in your lab10 directory.
/etc/. Save the command in find1.txt.apache2ctl is located. Save the command in find2.txt. Your command should return a single path to where this is located.broken.png. Save the command in find3.txt./tmp directory that have been text modified within the last 5 days. Save the command in find4.txt..png files that are in /usr/share/apache2. Save the command in find5.txt.ifconfig is located. Save the command in find6.txt. Your command should return a single path to where this is located.The grading script will be run as you are logged into scratch. The command you will execute will be similar for all of
your assignments that have an autograder. Here is a sample of the command you will run: run_grader.py --n 2. The 2 is representative of lab2. (Lab 3 would replace the 2 with a 3). You will see some feedback. You should make sure that all your tests pass and that your score is correctly recorded. Please see your instructor for any help or questi ons on the output.