Start with ‘VIM’

From now on that’s your blackboard !!

If you are a newbie to Linux (or Ubuntu) . . .

Open Terminal from Dashboard or better use the shortcut Ctrl+Alt+T

After opening Terminal, the first we will do is – Installing VIM

That’s quite easy job…believe me !

Just type the following command:

sudo apt-get install vim

It will take some time and you will get your own blackboard…

Follow the simple steps below to create your first file in Linux (It’s even simpler than making paper aeroplane):

  1. Open a new file (.c file) by typing vim helloworld.c
  2. Press ‘I” to enter into the insert mode
  3. Start with your program
  4. Press ‘Esc’ key to get out of the insert mode
  5. Save the program by typing on the screen- :wq! (colon wq exclamation mark)
  6. Now it’s time to compile your program:

        gcc –o helloworld helloworld.c

,where gcc is your GNU C Compiler; -o will create object file; in the next field type the name of your object file, give it any name, but we prefer to give it the same name as your .c file; the last field is the name of your .c file

Leave a comment