Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

linux Please explain the purpose of the exec function and what happens when it is called? 2.#1/bin/bash echo *cmd menu* 1-date 2-Is 3-who 4-pwd 0-exit

linux
image text in transcribed
Please explain the purpose of the exec function and what happens when it is called? 2.\#1/bin/bash echo "*cmd menu* 1-date 2-Is 3-who 4-pwd 0-exit " while: do HCapture the user's typed value read - p "please input number :" n n1= 'echo $nseds/[09]//g ' if [z"$n1]#(1) then continue fi if [n$n1]#(2) then exit 0 fi break done case $n1 in 1) date+\%Y\%m\%d;; 2) Is | WC +: (1) 3) who i (2) 4) pwd ;i (3) 0) break;; (4) \# prompts for entering numbers other than 1-4 ) echo "please input number is [14] esac What is the exit status when the test conditional test expression holds? Explain the result of the execution of step (1)(2)(3)(4)

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions