I am new to bash. I need to write the script which executes the following commands consecutively
su – bbt; id
and to see the result.
I have tried to put this line into the tmp.sh and then run it.
I just see the results of the first command su – bbt. I don’t see the results for the id command.
Try this:
su -c ‘bbt; id’