Running PuTTY on Windows_ Network Drive Mapping _for Windows User by bestt571


More Info
									Running PuTTY on Windows:
PuTTY is an SSH client for Windows that you can use to remotely work from
home. It can be downloaded from
You need to type”” as the host name.
For Stats students, you can download pre-configured Xming from StatCentral as

Network Drive Mapping (for Windows User):
If you use an ITaP computer or use PuTTY to connect, the default working
directory would be you network driver at ITaP. To map the network drive, right
click My Computer and select Map Network Drive. For the folder, use
(For Stats students only): If you use Xming to connect to the departmental UNIX
computers. The folder you should use when you map the network drive is
Note: when you try to map your network drive, make sure you‟re within campus
network or the VPN client (search university homepage for more detail) is

Useful Linux Commands (cont.):
Display two files and prints the lines that are different.
Search for files in a directory hierarchy.
SYNOPSIS: find [path...] [expression] e.g.: find ./* -name “*.c”
Locate a command. e.g.: which ls
List files in databases that match a pattern.

Pipe and redirect:
>: redirect the standard output. (e.g.: ls -l > output.txt)
>>: redirect the standard output and append. (e.g.: ls -l >> output.txt)
|: pipe. Take the output of the first command and treat it as the input for the second
Some applications: 1) ls –l | grep “^d” | wc; 2) ls –l | grep “^-” | wc; 3) grep
“‟#include” a.c| wc; 4) cat a.txt | tr t T > b.txt
C Program:
C is a general-purpose computer programming language developed in 1972 by
Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating
system. To run a C program, you have to do finish the following procedures:
   1. Write the source code: in our course, Pico is the main text edit we will use
       for C programming. You can type „pico‟ to run the edit. An example of C
       code is
               #include <stdio.h>

               int main()
                       printf("Hello, world!\n");
                       return 0;
      And save it as „hello.c‟
   2. To compile the code: Usually, we will use gcc, i.e.:
      gcc hello.c –o hello
   3. Run the new-built program hello.
   Note: We will use gdb to debug the program in the future.

R Program:
R is a high level language especially designed for statistical calculations. R is free.
You can get it at:
To run R under Linux, just type “R”.

C and R programming: If-else
In C, the general formats for these are,
                 if( condition 1 )
                 else if( condition 2 )
                 else if( condition 3 )

While in R, we have

                 if( condition 1) {
                 } else if(condition2) {
                 } else if(condition3) {

To top