Linux shell problem

I counld not run script properly.

If I run

-sharp!/bin/sh
echo "Hello.World"

It"s good.

But

-sharp!/bin/sh
sudo su
apt-get update
apt-get upgrade


It failed.

What do I need extra ?

Thank you.


update:

Apr.01,2021

 

because you are not familiar with linux,
, you edit files under windows and send them to ssh

.

the editor I use here is not simply "0A" but "0A0D" mixed with "0D" to cause the linux script recognition error.

Menu