1. If you have problem in assignment 1, you can ask for help and finish it in this lab.
2. Try the following unix commands and setup an directory (e.g. secret )executable, but not readable to others and group members. Inside this directory, setup another subdirectory with personalized name, which is not easy for others to guess, and make this new subdirectory both exectuable and readable to others.
ls
ls -l
ls
-la
chmod 700 oneFileName;
ls -l;
cp file1 fil2;
ls -l
mv file1 file2;
ls -l
mkdir yourDirName;
rm aFileName;
rmdir aDirName;
3. Using emacs write two java files. The source code should be handed in at the end of this lab.
You can copy a .class file to your own class.
The copy command is:
"cp /home/jshan/.www/com3113/code/Counter.class Counter.class"
And run it by:
"java Counter"
This Counter.class is generated by execute" javac Counter.java".
The Counter.java is my answer to this question. When you hand in your lab assignment, please send me the path to your code. Please do NOT attach the file in your email.
The deadline for this lab assignment is the same as assignment 2. It's the end of October 14th.
Back to course index page