COMP502 – Foundation of IT Infrastructure
Semester 2, 2019
Assignment Part 2/3: UNIX Operating System and Working with Basic Unix Commands
Total Marks 100 (Contribution to the final mark: 15%)
Due: 23:59 pm, Sunday. 22 September 2019 (end of AUT calendar week 8).
Late penalty: Late submissions will be penalised at 5% of the actual assignment mark for every calendar day. E.g. assignments submitted 5 minutes late are penalised as one day late. Late work of 5 or more days will not be marked.
This assignment will help you understand how to install multi-operating systems using VirtualBox and comparatively evaluate the Operating System (OS) of your choice.
This assignment is also prepared for students to understand the basic concepts covering UNIX file systems, UNIX commands, and UNIX working environments.
- The assignment will not be marked if:
- It contains any form of malware (e.g. computer virus)
- Submitted in non-requested compression format (e.g. 7zip, rar, …)
- Not submitted in a correct file format (see section: REPORT SUBMISSION INSTRUCTION)
- Keep a backup copy of your assignments to be:
- uploaded to “Turnitin” anti-plagiarism service – if requested.
- submitted as a hard copy – if requested.
Instruction for Submission
The assignment must be submitted on AUT ONLINE / Blackboard in soft copy at:
Assessments > Current Assessments > Assignment Part 2/3: UNIX OS and Commands.
- Create a PDF version of your assignment and name it as LAST NAME_Student-ID.pdf. Then upload it to AUT ONLINE / Blackboard.
- Note that RAR, 7zip or virus contaminated files will not be marked (automatic failure)
- The assignment requires the use of VirtualBox, which should be installed on every machine in the lab. If you would like to install VirtualBox on your own machine, you can download it at https://www.virtualbox.org/
To answer the assignment questions, you must use CLI and provide:
- The text or screen-shots of command(s) that you type to perform a task.
- The text or screen-shots of any console output from those commands (the output from a directory listing, for example).
- Make sure that you include ALL commands you used to do a task. This includes any commands you have to type to move to a specific directory. Make sure your pasted texts or screen-shots are clear enough to show where you are or have moved to.
Question 1: Setting up three different Linux operating system (18 marks)
Obtain your own copy of mandatory Linux distribution You can download any ISO images from the Internet (at – http://linuxlookup.com/linux_iso or http://virtualboxes.org/images). Once you get a copy of an ISO image, you can install it on Virtual Box.
- Choose and install any three of the Linux operating system and display some screen-shots of your installation, including your name and ID in the screenshots (use OS Text Editor application). (12 marks)
Note: any Linux distributions except that Puppy is acceptable.
- Briefly describe the three Linux operating systems that you just installed, which one do you like better and why? (at least 3 reasons by considering GUI or CLI features) (6 marks)
For this section choose one of the installed OS from the previous section and perform the
Question 2: Manipulate directory structures in Unix/Linux (24 marks – 4 marks each)
Use the OS that you set up from Question 1. Assume you are started at your home directory.
- Perform a command that displays the absolute path of your home directory (your current location).
- Create a new directory inside your home directory and name it “Assignment-2”
- Without moving into the directory you just made (staying in your home directory), create two new directories using one command inside of the Assignment-2 directory, and name them Test1 and Test2.
- Now navigate to the Assignment-2 directory and display the contents of your current working directory (the directory Assignment-2).
- Delete the directory Test2 and display the contents of the directory Assignment-2, this time using the long listing format and sort by modification time.
- Delete the directory “Assignment-2” and display the contents of the home
Question 3: Manipulate files in UNIX (30 marks – 3 marks each)
Assume you are started at your home directory again.
- Create and change your current working directory to FITI-HW (Stay in this directory for the rest of the steps in question 3)
- Create two new subdirectories called Part1 and Part2 in FITI-HW
- Create a new file called “txt” using the touch command and insert three lines into the file.
- The first line should contain your name and ID number.
- The second line should be a sentence that tells me your favourite
- The third line should be a sentence that tells me your favourite
- Display the contents of the file “txt” to the standard output (screen).
- Display the number of lines in the file “txt”
- Copy the file “txt” to directory “Part1” and rename it to “t_1.txt”.
- Change your working directory to “Part1”. Make a copy of “txt” with the name “t_2.txt” (in the same directory).
- Display the current contents of the directory “Part1” using long format.
- Copy the “txt” file to directory “Part2” and Display the current contents of the directory “Part2”.
- Delete the file “txt” in the directory “Part 1” and display “Part 1” directory contents
Question 4: Manipulate files in UNIX using wildcards (28 marks – 4 marks each)
- Change your current working directory to FITI-HW and create a new directory called “Part3” and “Part4” in that your working directory.
- Create 15 new files using ONE COMMAND (in directory Part3) named as follows:
- Display a listing of all the files and directories in long format in the current working directory.
- Display a listing of all the files in the current working directory ending with K using one command.
- Display a listing of all the files in the current working directory starting with t and ending with k using one command.
- Copy all the files containing “Test” to the directory Part4 using one command.
- Display a listing of the contents of the directory Part4, without navigating to the directory.