092506

Class notes

Captain: Sharmin

bu4035

Today's Topic

 

-How would you work in Linux environment

-Quiz on Oct 4th 100 questions. 

-The quiz will be 100  true and false questions 

- Each of you should provide 10 questions and  try to make the questions scatter

- please look at the class note and for the material we covered. In addition, look at the last semesters class notes.

- Concentration should be on search program and  how to make a search program to a search engine. 

-for exam: how context play a role in finding information accurate.  for every important words we have a file name that contains  the  materials. you should be able to run c++ program with visual Studio.NET or Linux environment. How to do the Linux( please look at page 473).  Appendix D explain how to run Linux (Unix) Linux is in a command mode usually like dos. 

-designing a web system understanding the 10 commands (pg695)

-general knowledge of programming, programming languages, operating system.

-due project 2

- How does HelloWorld program has been saved (ctrl o and ctrl x)

-any work you do must be save on your geocities account.

 

-pick up the 100 important words

-Programming Tutorial system the reserve word play the important role. 

How would you create a file in OS e.g. Dos(as explained pg81)

edit and filename. you need an editor

How would you create a file in Windows, dos Linux etc.

pico and vi are emac edit in Linux

which editor are we using to write the program?

-pico

for the pico you need to know how to get in and how to get out (ctrl o and ctrl x)

// (comment)

-compare windows environment and Linux environment

-what is the next command you need to type after you create a program? g++(pg474)

-why g++? because GNU

-what would be the advantages of Linux verses windows based program?

-After you compile and you have no error how would you execute the program in Linux

- ./a.out (the name of the file to which the executable code in sent)

for exam: 1) if.in

             2) if.html

             3)#if

             4)www.if.com(look for a site that explain decision making very well)

how would you go to windows to dos?

start>>run>>cmd

some of the dos command come from UNIX like cd md. 

path name in UNIX is slash /.

path name in dos with back slash\

page 79-80

in UNIX we use ls

CLS=Clears the screen

DIR=Displays the current directory

CD\=Go to the root directory(such as C:)

CD..=Go one level up from the current directory to new directory.

CD directoryname=Changes the directoryfrom current directory to new directory

Exectutablename=Runs an example file. Do not type in the .exe extension

<filename.in=Indirection Operator-Use file to the right of the operator as the input file

>filename.out=Indirection Operator- Use file to the right of the operator as the output file.

 

 

         

      

 

Prof is soliciting help: If anyone wants to help to move the server from his office to Computing Services, let the professor know (YOU'LL GET POINTS!).  It's a Redhat Linux with an Apache server.

 

We discussed the Redhat Linux Server.  Prof. would like the class to explore the server on their own. 

Some of the commands are called cat, ls, g++, c++, ./a.out, cp (copy), rm (remove), cd. (go one level up), cd ~ (go back to the home dir.)

If you go to help and type the name of the command you are researching, you can do so by typing help (enter you search word here, not parenthesis)

There is an editor called Pico to type your program and to type anything else.  ex: pico search.cpp.

There are other editors called vi and the other is called Emacs.

Appendix E in the text book will show you how to use the pico editor to type your program, save it, name it, compile and execute it.

 

Click here for our short discussion on tables.