Tuesday, October 6, 2009

check this out..


c program from a linux terminal

well here it is....how to run a C program from a linux terminal...
Distribution differences wont matter as these are the general steps::


Step 1 :

Creating a program...
U can choose any of the various editors...i chose vim.
And do not forget to save...
( U can alternatively create the file on any directory u want)

#vim hello.c

Step 2 :

#gcc hello.c


Step 3:

In olden days,,the output of the assemblers was stored in the file
a.out

so the trend continued...
and we execute this file

#./a.out

BINGO!!
enjoy..

Thursday, October 1, 2009

ubuntu tips n tricks

1. press Alt+F2 and write, "free the fish"

2. 
Open the terminal and type:
1. apt-get moo
2. aptitude help
3. aptitude moo
4. aptitude -v moo
5. aptitude -vv moo
6. aptitude -vvv moo
7. aptitude -vvvv moo
8. aptitude -vvvvv moo
9. aptitude -vvvvvv moo
Enjoy the responses.. ;)

3.
Press ALT+F2 and then type in "gegls from outer space" and enjoy the game of space invaders but with an exception – the game is played with cows !!!! :D