exercise3

Exercise 3. Store the output of  'whoami' command in a variable and display the out put as "You are logged in as ___" in which "___" will be your username which you logged on.
Script: We used one variable 'a' to store the output of command 'whoami' and used the variable 'a' in echo command to display the output with our string.
Output: We got the string printed on terminal and the value as well which is in variable 'a'.
 
 
 

No comments:

Post a Comment