...
Question 4999 – Operating-Systems
November 17, 2023
Question 5068 – Operating-Systems
November 17, 2023
Question 4999 – Operating-Systems
November 17, 2023
Question 5068 – Operating-Systems
November 17, 2023

Question 5070 – Operating-Systems

Which of the following set of Unix commands will always display “WELCOME” ?

Correct Answer: C

Question 622 Explanation: 
title = WELCOME;
export title ; /* The export command marks an environment variable to be exported with any newly forked child processes and thus it allows a child process to inherit all marked variables.*/
sh –c “echo $title”; /* sh calls the program sh as interpreter and the -c flag means execute the following command as interpreted by this program. */
echo→ will display the content of a variable.
A
export title=WELCOME; Echo $title
B
title = WELCOME; export $ title ; sh –c “echo $title”
C
title = WELCOME; export title ; sh –c “echo $title”
D
title = WELCOME; echo $title
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!