To "ssh" into a linux system from Windows, download and install PuTTY from http://www.chiark.greenend.org.uk/~sgtatham/putty/ ssh to your linux machine using PuTTY as follows: Run PuTTY Session Enter "Hostname" or ip address Leave connection as "SSH" and Port 22 Connection Data Under "Auto-login username" put your user name if you want Session (again) Under "Saved Sessions" give it a name Click "Save" - next time just recall this session Click "Open" (down below) *********************************************************** Some helpful commands: In the following, the text to the right of "#" is a comment Text in angle brackets, "<>", should be replaced with your own e.g., type "mkdir ece177" to create a directory called "ece177" "^C" (that is "Control-C") will exit you from most running programs man # Manual/help information for any command # note: in "man" and many other programs such as "more" and "less" there you can use # 'q' to quit; 'h' for help; (the "escape" key) sometimes gets you out of trouble # - forward one line; or 'f' - forward a page; 'b' - back a page; # / to find the next occurance of ; 'n' finds next occurance # of previous search, and 'N' finds previous occurance of previous search; # n'G' (e.g., 15G) positions at line 'n' in the file; "0G" positions at the end of file # Arrow keys also move up and down in the file passwd # to change your password if you haven't already # note that typed password characters are not echoed (are invisible) mkdir # to create a new directory called rmdir # to remove a directory cd # to change directory # if starts with "/", it is a full path name from the top # else it is relative to the current directory cd .. # move up one directory level cd - # change to previous directory pwd # print working directory ls # list files in this directory ls -l # list files in long format mv # renames (moves) file from old filename to new filename mv # moves file to another directory given by the pathname cp # copies file to another # may overwrite old file without warning -- see -i and -n options cp -p # also copies, but keeps permissions/file date cp -r copies a whole directory recursively cat # prints a file to screen (standard output) -- "cat" is short for concatenate rm # to remove a file nano # simple editor to edit a file # If it is a "C" file, give it a ".c" extension (e.g., "hw01.c") vim # A more powerful common editor - steeper learning curve! # Note "" gets you out of edit mode, ":q" to exit gcc # to compile a file (executable name is "a.out" by default) gcc -o # also compiles, but executable name is ./ # to run grep # prints lines in the file or files that contain that string # filename can contain "*" as a wilcard. # e.g., xyz* is all files with names starting xyz diff # lists differences between the two files history # list of previous commands typed ! # rerun a command with that number in your history !! # rerun previous comnmand ! # rerun the previous command that started with that text. # e.g. !vi runs last command in your history starting with !vi # cycle through past commands in your history # completes a name if it can figure it out for more options control-C # interrupts a running process Also learn about: < # redirect input from (instead of typing it in) > # redirect output to instead of screen >> # redirect, output is appended to | # output of is "piped" directly and used as input to exit # exit ssh and close console window