BIF713 Assignment #1


Due Date: Friday October 18, 2013 at 11:59:59 pm


Purpose:


The purpose of this assignment is to evaluate the BIF713 student's skill in using MS Windows and Linux operating systems to complete basic tasks including file management.


Instructions:


This assignment is to be performed on your MS Windows system on your home computer. If you do NOT have a computer at home containing MS Windows, please contact your BIF713 instructor for further instructions...


Complete Parts A, B and C. For ALL parts, pay close attention to whether the directory and file pathnames are lowercase or UPPERCASE. (Failure to pay attention to case sensitivity will result in improper submission, and will require students to remove directories (and files contained within the directories), and then repeat the assignment... )


Part A: Working in MS Windows


  1. Download and install SSH application on your home computer . Refer to BIF713 course notes (week 1) for link to SSH application.

  2. Open a blank document in MS-Word . If you do not have MS-Word installed on your system, you can use WordPad which is located under the “Accessories” menu.

  3. Enter at the top of the MS-Word Document the following Heading information:

    - BIF713 Assignment #1
    - Your Full Name
    - Your Student Number
    - Current Date

  1. Insert two empty lines, Type "Screen Shot #1:", and then insert another four empty lines .

  2. Minimize all windows (using a shortcut key), so that the full Desktop is visible.

  3. Launch the installed SSH application. Make certain that the SSH application window is NOT maximized.

  4. Login to your Matrix account, and issue following commands:

    whoami
    pwd


  5. Take a screen shot (using shortcut keys) of your Desktop which contains your SSH application window.Hint: Perform a “Net Search” on the phrase “Windows shortcut screen capture” to learn how to perform a screen capture.


  1. Switch to your word document, and paste your screen capture two blank lines below the
    heading called "Screen Shot #1:". At the end of your document, Type "Screen Shot #2:", and
    then insert another four empty lines.

  2. Switch back to your SSH application. Take a screen capture of ONLY the SSH window (i.e. NOT the desktop, just the SSH application window). Do NOT maximize the SSH window. There is a shortcut key to take a screen capture of the application window that is currently in focus.

  3. Switch to your word document, and paste your screen capture two blank lines below the heading called "Screen Shot #2:".At the end of your document, Type "Screen Shot #3:", and
    then insert another four empty lines.

  4. Use a Windows shortcut to open the “Display Run Dialog Box” and type in the following command to run the command prompt:

    cmd

  5. Maximize the command prompt application window.

  6. Issue a windows command to create a directory called ASSIGN in your current directory.

  7. Issue a command to create the following additional directories:

    ASSIGN\DIR1
    ASSIGN\DIR2
    ASSIGN\DIR3


  8. Issue a windows commands:

    dir > ASSIGN\DIR1\LISTING.TXT
    date > ASSIGN\DIR2\DATE.TXT
    time > ASSIGN\DIR3\time.txt


  9. Issue a windows command to change the filename LISTING.TXT to DIR_LISTING.TXT . Issue a windows command to change the filename DATE.TXT to CALENDAR.TXT . Issue a windows command to change the filename time.txt to clock.txt

  10. Issue a windows command to clear the screen.

  11. Issue the following command:

    tree ASSIGN


  1. Take a screen capture of only the command prompt application window.

  2. Switch to your word document, and paste your screen capture two blank lines below the heading called "Screen Shot #3:"

  3. Save your changes on MS Word to the name PartA1 on your desktop, and then close the document window(i.e. do not close MS Word application). Open a new Word document.

  4. Enter the same heading information for this new unsaved file as you did for the earlier file called PartA1.

  5. Use a short-cut key to minimize ALL open application windows so you can see your desktop.

  6. Take a screen capture of your desktop.

  7. Paste the screen shot of your desktop, save your document in your desktop called PartA2

  8. Close the MS Word and command prompt applications.

  9. Keep the SSH application window open, and proceed to Part B


Part B: File Management / Working in Linux


In your SSH shell while logged into your Matrix account, issue the following Linux commands or perform the following application procedures in SSH:


  1. Issue a Linux command to create a subdirectory contained in your HOME directory called BIF713

  2. Issue a Linux command to create a subdirectory contained in your newly created BIF713 directory called ASSN1

  3. Change to ASSN1 directory in your Matrix account.

  4. Within your SSH shell, open a "new file transfer" and transfer the files PartA1.doc and PartA2.doc from your desktop on your PC to the directory ASSN1 in your Matrix account.

    NOTE: Depending of your version of MS Word, file extensions may be called .docx instead of .doc which will still be acceptable...

  5. Issue two linux commands to change the names of the files PartA1.doc (or .docx) and PartA2.doc (or .docx) to Part1.doc (or .docx) and Part2.doc (or .docx) respectively. These files should be located in your ASSN1 directory.

  6. Using the vi text editor, create a file called me.txt in the ASSN1 directory containing a sentence about yourself.

  7. Make a backup copy of the file me.txt called me.bk

  8. Remove the file called me.txt


  1. Issue the following Linux command: tree BIF713 > listing.txt

  2. Issue the following Linux command: history | tail -30 > commands.txt

  3. Issue a linux command to create a "tarball file" called contents.tar that contain all files within the directory ASSN1. This "zipped tarball" should also be contained in the directory ASSN1.
    (Hint: use the tar command)

  4. Issue the gzip command to compress the zipped tarball that resides in the ASSN1 directory. If done porperly, the name of the file should be contents.tar.gz

  5. Keep the SSH application window open, and proceed to Part C


Part C: Submit your assignment from Matrix


You will be running a shell script (program) that was created by your instructor to ensure that you properly created your directories and files for this assignment.


If there is a problem, the shell script will provide error messages to suggest how to fix the problem.


If there are no problems, then the shell script will send as an attachment the file called contents.tar.gz in a e-mail message to your instructor to be marked. Also, an e-mail message with those attachments will be sent to your learn e-mail account for verification of submittal. You should keep this e-mail of proof of submission for the remainder of the semester.


Below is the pathname to issue. You can copy and paste this command into your SSH window while you are logged into your Matrix account.


/home/murray.saul/bif713/bif713-a1-submit


*** END OF ASSIGNMENT #1 ***