Network and System Administration (EE4301 Semester A 2009/2010)
Messages
Be the first to know. ~CNN

Oct 23, 2009: Hints for the Assignment 2 and Further Postopement of the Dealine
As most of the students feel that the assignment 2 is difficult, I would like to further postpone the deadline of the assignment to 3rd Nov 2009.

In addition, here are some additional information that may help to develop your script:

- There is no model answer in the assignment 2, the suggested solution is only one of the ways to provide the functions described by the question.

- No need to sort by multiple conditions, you can assume -o , -s and -f will not appear in the same command. If your program can handle multiple sorting conditions, please describe your assumption clearly.

- No need to check the validity of directory names.

- The following command will be tested:

o ./script -x 100000 /tmp/
o ./script -o /tmp/
o ./script -s /tmp/
o ./script -f /tmp/
o ./script -s -x 100000 -N 3 /home/* /tmp/*
o ./script -h
o ./script

- In a shell script, the variable $# indicates the number of arguments, $$ indicates the process id, $1 is the first argument, $2 is the second argument, $* is the remaining arguments.

- To store your temporary data, you can put a temporary file in the directory /tmp/, for better management you can name your file as /tmp/$$.tmp, and the file will have the name /tmp/[process_id].tmp this can prevent conflicts with other process since all process have their own process id.

- The command find is a very powerful tool for finding files, you can use

o find . -size +1000000c to find file larger than 1MB

- You can also format the output of the command find

o find . -name test.txt -printf "%u %s %p" to find files with name "test.txt" and list the result with the following format:
-[owner] [size] [file_full_path_name]

- You can redirect output of a program to a file by ">", ">>"

o The command "ls > output.txt" will put the output of ls to the file "output.txt"
o ">>" is similar to ">" but ">>" is to append

- Commands find, sort, uniq, grep, head and cat are also very useful in this assignment.


Oct 20, 2009: Suggested Mid-Term Exam Solutions
The suggested Mid-Term Exam Solution is now available in the homework webpage for download.


Oct 13, 2009: Postponement of the Deadline for Assignment 2
Based on the comments from most of students, I would like to announce that the deadline for assignment 2 is postponed to 27 Oct 2009.


Oct 13, 2009: Mid-Term Exam on Week 8
I would like to remind that the Mid-Term Exam of EE4301 with duration of one and half hours will be held on week 8. The Mid-Term Exam will cover the materails up to week 7.


Sep 18, 2009: Make up of Lab 1
For these students have not attended the lab1, you can contact Mr. CY Cheng or Ms Shirely Ng for arranging make-up session. Lab1 is essential in this course as the other three labs are preformed on the Linux machine of Lab1.


Sep 8, 2009: Assignment 1 and Labs Materials
The pdf files of assignment 1, lab1 and lab2 are available for download in the homework webpage. It is highly recommended that students to download these materials for starting on the assignment 1 as soon as possible and study the lab sheets before come to the lab sessions.


Sep 8, 2009: Project List
The project webpage was updated with the approved projects and group members. We would like to remind all students to double check your names on the list and inform me for any correction.


Aug 28, 2009: Lecture 1 Message
The username and password for accessing the teaching materials such as lecture notes and lab sheets will be announced in the first lecture.

As most of the CE students did not take the basic training on using basic Unix commands and file processing, they are highly recommended to perform an additional exercise to learn these basic skills. The exercise can be downloaded here. Basic Unix Commands Exercise.

Home