Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Linux project Create a script where the script reads the existing custom environment variable SCCDEVINFO (created with 'export SCCDEVINFO=value' which you will need to create

image text in transcribed

Linux project

image text in transcribed

Create a script where the script reads the existing custom environment variable SCCDEVINFO (created with 'export SCCDEVINFO=value' which you will need to create to demostrate the script), which will contain the full path to a file. Each line in the file will be the full path to an existing file, so loop through the file and read each line one at a time and append the line cookie=a87vandks6282basdfk7 to the end of the file, if the file does not already contain a line with cookie='. Once completed, take a screenshot of the source code of the script, and of the script executing, to execute the script you will need to create your own sample input, please include the sample input as part of your execution screenshot. 10:33 PM 1) Is the following path relative or absolute? ../././.././training/./lib/boot/usr/./ 2)Is the following path relative or absolute? ./var/./mail/./spool/man/vsftpd/../mnt/var/etc/ 3)Is the following path relative or absolute? ../lib/users/reports/../../../share/../spool/./share/log/home/ 4) Is the following path relative or absolute? /home/opt/vsftpd/vsftpd/mnt/tmp/bin/bin/./ 5) Is the following path relative or absolute? /www/.././lib64/./httpd/boot/share/lib/docs/spool/log/ 6)Is the following path relative or absolute? ./root/boot/opt/../.././.././../users/ 7) Is the following path relative or absolute? ./boot/var/opt/./lib64/media/log/log/../ 8)Is the following path relative or absolute? ~/man/home/ssh/reports/boot/lib64/..fsd/users/reports/../media/ 9) Is the following path relative or absolute? ~/./reports/test/../bin/data/media/media/../www/ 10)Is the following path relative or absolute? ~/rootfsd/./training/./../mail/boot/usr/media/./ 11) What would be your current working directory if you changed directories to /training/man/httpd/../www/mnt/opt/../../users/reports/share/sbin/./httpd/ 12) What would be your current working directory if you changed directories to ../log/sbin/usr/./var/./lib64/./test/./

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

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions

Question

To solve p + 3q = 5z + tan( y - 3x)

Answered: 1 week ago