Running PuTTY on Windows_ Network Drive Mapping _for Windows User

Document Sample
Running PuTTY on Windows_ Network Drive Mapping _for Windows User Powered By Docstoc
					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
        http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
You need to type”expert.ics.purdue.edu” as the host name.
For Stats students, you can download pre-configured Xming from StatCentral as
well.

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
                     \\offcampus.ics.purdue.edu\your_login_id
(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
                       \\samba.stat.purdue.edu\your_login_id
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
activated.


Useful Linux Commands (cont.):
diff
Display two files and prints the lines that are different.
find
Search for files in a directory hierarchy.
SYNOPSIS: find [path...] [expression] e.g.: find ./* -name “*.c”
which
Locate a command. e.g.: which ls
locate
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
one.
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:
                             http://www.r-project.org/
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 )
                   statement1;
                 else if( condition 2 )
                   statement2;
                 else if( condition 3 )
                   statement3;


While in R, we have

                 if( condition 1) {
                   statement1
                 } else if(condition2) {
                   statement2
                 } else if(condition3) {
                   statement3

				
DOCUMENT INFO
Shared By:
Tags: Network, drive
Stats:
views:75
posted:4/25/2011
language:English
pages:2
Description: Network drive when the disk in the computer network as a shared data area allows network users to access, the drive to become a network drive. Sometimes use the network drive is to be limited, and that only authorized network users to the network administrator can access them. This drive can be a hard drive, CD-ROM drive, floppy disk drives. Similarly, the use of network drives and local drives is no different, just slower rate than local use.