Difference between revisions of "CSC220 Lab 1 2010"

From dftwiki3
Jump to: navigation, search
Line 3: Line 3:
 
<br \>[[File:UnderConstruction.jpg|300px]]
 
<br \>[[File:UnderConstruction.jpg|300px]]
 
</center>
 
</center>
 +
 +
You can work in pairs on this lab if you wish.  Otherwise work individually.
 +
 +
=Login=
 +
 +
 +
* Login to a Linux box around you using your CSC220a account.
 +
 +
=Question Group 1=
 +
 +
* What is the '''path''' of your account?  In other words, what subdirectories does one have to traverse to reach your account.
 +
* What other subdirectories are at the same height as yours in the directory tree?
 +
* You will notice that all user accounts are in a major directory called '''Users'''.  The ''old'' standard for users on a linux system is to have the users in a directory called '''home''' in the '''root''' directory.
 +
* You will notice that some user accounts still exist in '''home'''.  Which are they?
 +
 +
=Question Group 2=
 +
 +
* With Linux, the name of the printers supported are listed in a file called /etc/printcap.  Look at its contents.
 +
* Figure out a way to get only the entries from this file that represent printers that are in Ford Hall.
 +
 +
=Question Group 3=
 +
 +
* Open a browser window and load up the following URL: http://maven.smith.edu/~hadoop/log.txt
 +
* Notice that it is a long log of the output of a research program I have been running recently.  It is very long and contains a lot of information: some useful, some not.
 +
* You are going to get a copy of this file into your account.  Instead of copying and pasting the text into a file, you are going to use a useful utility called '''wget'''.  '''Wget''' is a Linux utility that allows you to grab Web pages from Web sites, without using a browser. 
 +
 +
:Try it:
 +
 +
  wget http://maven.smith.edu/~hadoop/log.txt
 +
 +
* Check that the file is in your directory

Revision as of 13:11, 7 September 2010

Page under construction!
UnderConstruction.jpg

You can work in pairs on this lab if you wish. Otherwise work individually.

Login

  • Login to a Linux box around you using your CSC220a account.

Question Group 1

  • What is the path of your account? In other words, what subdirectories does one have to traverse to reach your account.
  • What other subdirectories are at the same height as yours in the directory tree?
  • You will notice that all user accounts are in a major directory called Users. The old standard for users on a linux system is to have the users in a directory called home in the root directory.
  • You will notice that some user accounts still exist in home. Which are they?

Question Group 2

  • With Linux, the name of the printers supported are listed in a file called /etc/printcap. Look at its contents.
  • Figure out a way to get only the entries from this file that represent printers that are in Ford Hall.

Question Group 3

  • Open a browser window and load up the following URL: http://maven.smith.edu/~hadoop/log.txt
  • Notice that it is a long log of the output of a research program I have been running recently. It is very long and contains a lot of information: some useful, some not.
  • You are going to get a copy of this file into your account. Instead of copying and pasting the text into a file, you are going to use a useful utility called wget. Wget is a Linux utility that allows you to grab Web pages from Web sites, without using a browser.
Try it:
 wget http://maven.smith.edu/~hadoop/log.txt
  • Check that the file is in your directory