To Temple College Class  logo R. Craig Collins > ITSC 1305 > Lab 7

Lab 7 © R. Craig Collins, 2005/6

See Appendix B

General Lab Directions
Note: There is not enough time in lecture to cover all the material; read your book BEFORE you begin the lab
Note: Typically labs will require you to invest some time in the lab, outside of class lecture hours

 •Check with the Instructor for the due date
 •Document the required steps/commands/tags before you start, 30%
 •Successful completion of activity, 40%
 •Hands On, 30%

Make a folder named Lab7 on your floppy or O: drive.
Right click here, then choose Save Target as... to save in the Lab7 folder. Save this as yourname-lab7.rtf
Open Wordpad, then open yourname-lab7.rtf
At the end of this process, you will be turning in answers using the Quizzes area of Desire2Learn, based on the following questions. So, to get the best score, fill in all the answers in this document first.

If you don't have access to Linux, you might try Cygwin, an Open Source Linux emulator for Windows.
(No tech support for Cygwin, use at your own risk)

If you don't have access to Linux, you might try http://www.ubuntu.com/ to order or download a version of Linux that you can use without installing (boot from ubuntu Live CD... No tech support for Ubuntu, use at your own risk)

Using Linux, demonstrate the following:

Documentation
Documentation 30%

man
What does the command do?
What is the syntax for the command? (Syntax does not include specific drives or directories)
How do you end the man session

ls
What does the command do?
What is the DOS equivalent?
What is the syntax for the command? (Syntax does not include specific drives or directories)
After doing the activity, come back and fill in the examples
Write out one example of how the command was entered into Linux in this lab

mkdir
What does the command do?
What is the DOS equivalent?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into Linux in this lab

cat
What does the command do?
What is the DOS equivalent?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into Linux in this lab

cp
What does the command do?
What is the DOS equivalent?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into Linux in this lab

rm
What does the command do?
What is the DOS equivalent?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into Linux in this lab

rmdir
What does the command do?
What is the DOS equivalent?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into Linux in this lab

mv
What does the command do?
What is one DOS equivalent?
What is the other DOS equivalent?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into Linux in this lab

chmod
What does the command do?
What is the syntax for the command? (Syntax does not include specific drives or directories)
Write out one example of how the command was entered into Linux in this lab

Linux Activity (near the end of the process, this is what you should have, then you delete the items you made)

folder/ (root)
          |
       folder/home
                   |
                folder/home/your account ($HOME)
                            |
                          foldertestx
                                      |----test.txt        
                                   folderweb
                                              |----test.txt 

  • Using Linux, demonstrate the following by executing the commands, and writing down the command and parameters that worked.

    . Hands On
    Use the class website, or whatis to get a description of a command, or apropos to search for keywords to locate a command

    1. Command or character used to search for a file ____________________
    2. Command /character to take the output of man ls and use it as the input of the more command:
      man ls ___more
    3. Command or character used to redirect output, say from the monitor to a printer _________
    4. Command or character used to search for words or phrases within files ____________________
    5. Command or character used to remove duplicate lines from a file ____________________
    6. Command or character used to show differences in files ____________________
    7. Command or character used to change lower case to upper case ____________________

    You will then transfer your answers to the D2L Quiz for lab 7.
    Choose the Quizzes menu, and locate Lab 7.
    Save changes to your file, and submit this documentation if desired, as directed


  • for Labs that require files to be electronically submitted
     •if you have multiple files, zip the required file(s) and/or folder(s)
     • rename the zipped file to reflect your name and the lab being turned in
           •Example: yourname-lab1 or yourname-lab1.zip (if your extensions are visible)
           (For additional help on selecting, zipping, or renaming files, see Windows Crash Course)

     If submitting by Temple College Desire2Learn:
           •Log into D2L, scroll to the bottom, and choose the correct course
           •When the Course Home Page appears, click on the Dropbox link.
           D2L navigation D2L Dropbox notes D2L Quizzes Notes D2L Discussion Notes
    Dropbox directions