Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Bash Shell Programming: 2) Copy the flag.txt file from the /etc directory to the local directory Using cat, type the flag number displayed in flag.txt

Bash Shell Programming:

2) Copy the flag.txt file from the /etc directory to the local directory

Using cat, type the flag number displayed in flag.txt that you copied.

Using echo and su, display the contents of the FLAG variable and type in the flag displayed.

3) Using echo and su, display the contents of the FLAG variable and type in the flag displayed.

4) Type the flag number in flag-bash4 file in the /root home folder using cat. (hint: you need to use the su command with the password of P@ssw0rd)

Type the flag number displayed in the Templates directory for the flag file.

5) Using grep, find the flag4* in the flag file in the Documents folder.

Using the sed command to replace me with sed in the flag file and type the flag number displayed.

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

Principles of Information Security

Authors: Michael E. Whitman, Herbert J. Mattord

4th Edition

978-1111138219, 1111138214, 978-1285448367

More Books

Students also viewed these Operating System questions

Question

What is assembly language?

Answered: 1 week ago