Unix Environment Basics CSCI-1302 Lakshmish Ramaswamy
Organizational Matters Tutor – Tapan Patwardhan (tapanp@uga.edu) Office Hours: Tue & Th 2:15pm-4:15pm & Wed 1:00pm-3:30pm; CS Lounge (Tentative) TA – TBA Email Rule – Subject line should start with CSCI 1302: Always CC me
Getting Account on Atlas All the assignments to be done on Atlas You will all receive accounts on Atlas Go to system CS support today afternoon/tomorrow to collect your account information
Accessing Atlas from Windows Download and install “putty” Available freely at http://www.chiark.greenend.org.uk/~sgtatham/putty/ Open putty client and login using your username and password
Directory Structure in Unix Files organized into directories Hierarchical structure You will be logging on to your “home” directory
File & Directory Operations in Unix “mkdir” “cd” “ls” “rm” “mv” “cat”
Access Rights in Unix Read Write Execute Permission for self Permission for group members Permissions for everyone “chmod” command
Path Variable Executables kept in various places (directories) path variable tells the OS where to search for commands you type in Incorrect/incomplete path results in “command not found” Use “echo” command to see what your variable is set to
Setting the Path You will be using java 1.5 Java is located at /usr/local/jdk1.5.0/bin Use the following command to set your path variable correctly set path=( /usr/local/jdk1.5.0/bin /usr/local/java/j2sdk1.4.1/bin /opt/sfw/bin /usr/local/bin /usr/bin /opt/sfw/bin .) Include the command in your .cshrc file source .cshrc java –version should show “1.5.0”
Editors in Unix pico vim emacs
Compiling and executing java programs javac firstprogram.java java firstprogram First assignment