Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 3.1: When given an input file, script will read the lines of the file and execute them in sequence (fix syntax errors) . #/bin/bash

Task 3.1: When given an input file, script will read the lines of the file and execute them in sequence (fix syntax errors) .

#/bin/bash mkir test cdtst echothis is file1" > file1 sed's/1/2/`< file1 > file2 cat > file3 <filelist

Task 3.2: Using Read Command (Delete a file that exist on your system)

!/bin/bash echo Please enter the name of the file to delete: readlinedelfiles rmove $defile echo $delfile Deleted

Task 3.3: Add users (Log on as root)

#!/bin/bash/ # # The mkuser script was written by Dhillon # to make my life a little easier. # print "This program will add a new user." print "Type exit to quit." echo -nn "Enter a new username: " read name while [ $names != "exit" ] as ; does usrad -d /home/$name -s /bin/bash $name passwordd $name echo -n " Type exit to quit or Enter a new username: " readnaeme do

exit

show all input and output, as well as screen shots for every step taken. I am running the code on my terminal

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

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

More Books

Students also viewed these Databases questions

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago

Question

What is sociology and its nature ?

Answered: 1 week ago

Question

What is liquidation ?

Answered: 1 week ago

Question

Explain the different types of Mergers.

Answered: 1 week ago