![]() |
![]() Second Summer 2009 |
As you take the steps outlined below try to determine their meaning, for each step.
pwd at the prompt.
man pwd at the prompt.
cd and press Enter. Where are you now?
mkdir tutorial or mkdir ~/tutorial then press Enter.
tutorial folder. cd ~/tutorial but other ways are possible.
experiments folder in it. mkdir experiments
experiments then check that you're in it. cd ~/tutorial/experiments; pwd then press Enter.
experiments create two folders: programs and documents. mkdir ~/tutorial/experiments/programs mkdir documents
programs and create two folders in there. Java and the other one perl.
perl directory and create a file with the following contents:
You should use#!/usr/bin/perl print "Howdy, I'm a perl program!\n";
cd to move into the folder. pico or the text editor of your choice to edit the file. one and make it executable:
Run the program withchmod 700 one
./one (notice the dot, indicating the current folder).
Java folder and create a file with this contents:
class One {
public static void main(String[] args) {
System.out.println("Hello, I am a Java program!");
}
}
One.java and compile it with: javac One.java
ls or ls -ld * to confirm that a One.class file gets created.
man ls just for fun.
java One to run the Java program created earlier.
documents folder and create two files:
pico doc1.txt pico doc2.txt
~/tutorial (using cd) to start creating the archive.
du -a ~/tutorial and think about the output. du do? What does it stand for? Type man du if you're not entirely sure.
tutorial and issue the command to create the archive. cd ~/tutorial; tar cvf whoa.tar experiments
~/public folder. Create it if necessary. mkdir ~/public
ls as follows: ls -ld ~/tutorial/*
tutorial to public using the Unix copy (cp) commandcp ~/tutorial/whoa.tar ~/public
gzip ~/public/whoa.tar
chmod 644 ~/public/whoa.tar.gz
public folder to be available to everybody: chmod 755 ~/public
public is needs to allow careful access to it: chmod 711 ~
The program I will use can be found in /l/www/classes/a348/sum2006/software/alpha
Here's an exhaustive list of usernames I am going to be testing:
![]()
Talgat![]()
Dean![]()
Echo![]()
Francis![]()
Joe![]()
Jordan![]()
Alex![]()
Dan![]()
Logan![]()
Leo![]()
Madhuvanthi![]()
Margaret![]()
Neethu![]()
Nick![]()
Vikas![]()
Rajeswari![]()
Sarah![]()
Sushmitha![]()
Yoon Mo![]()
Mohammed![]()
Hongliu![]()
NathanThese are all the usernames we need to worry about for the time being.
If you don't see yourself above please let me know so I can add you to this list.