PDA

View Full Version : hello world program



abhikumarvatsa
February 9th, 2011, 08:28 AM
Hellow

I am very new to Ubuntu. I have installed a windows compatible version of Ubuntu on my computer.

Now I am wishing to run the shell programs but i don't know how to start, i mean how to run my first program (hello world program). Please tell me the steps to run (execute) the shell programs on Ubuntu extension.


Thanks in Advance

ganeshv
February 9th, 2011, 08:32 AM
Hi
I am not sure what specific shell program you want to run, but here is where you can start
http://www.go2linux.org/starting-with-shell-script
hopefully it helps!

lisati
February 9th, 2011, 08:32 AM
Thread moved to Programming Talk.

Have a look at the stickies :)

abhikumarvatsa
February 9th, 2011, 08:33 AM
no..no

I am wishing to know, which application we have to open to run shell programmings in Ubuntu.

And tell me steps too.

Thanks for quick reply

lisati
February 9th, 2011, 08:35 AM
Application->Terminal

abhikumarvatsa
February 9th, 2011, 08:36 AM
Ok...

Application>Terminal

And then I typed following

#!/bin/sh
clear
echo "Hello World"


Isn't it?

lisati
February 9th, 2011, 09:12 AM
Ok...

Application>Terminal

And then I typed following

#!/bin/sh
clear
echo "Hello World"


Isn't it?
Whoa there!
Open up a text editor. Save your bash script in a file. Then run the file.

fct
February 9th, 2011, 10:41 AM
When it comes to editors, you can use a graphical one like gedit (type "gedit" in terminal, or Application->Accessories->Text editor).

Or one like vi, which is installed by default in most UNIX-like systems. Harder to learn, but worth it:

http://www.eng.hawaii.edu/Tutor/vi.html