This project is worth 20 points.
Note that this exercise is meant to be performed in the lab with the
assistance of your instructor and TA. However, if you do not finish, you
must finish on your own time.
- Log On to the Linux System
Log on to the Linux system by following the instructions on the attached
"Logging On and Off Using Tera Term" sheet.
- Check Your Disk Quota and Clean Your Directory
OIT allocates a fixed amount of disk space (called your "disk quota") to each
of the gl system users. It is a good habit to check your disk quota from time
to time to make sure that you are not coming close to your allocation.
To do this, type: quota -v
If you have already used a large portion of your quota (e.g., 90% or higher),
you should delete unnecessary files. To do this, you must copy a file called
cleaner into your directory. To copy this file, type
cp /afs/umbc.edu/users/s/m/smitchel/pub/cleaner .
Note that the final period is part of the command and must be typed. Also,
you only need to copy this file into your directory once. Check that the
cleaner file is in your directory by typing: ls
Run the program by typing: cleaner
You should now have more disk space available.
- Getting Ready to Use the emacs Text Editor
Before you begin the next part of this exercise, you need to copy another file
into your directory. This file is called .emacs and activates certain
emacs features (do not worry about what features for now). To copy the file, type
cp /afs/umbc.edu/users/s/m/smitchel/pub/.emacs .
Note that the final period is part of the command and must be typed. To check
that the file is now in your directory, type: ls -a
- Use the emacs Text Editor to Create an Autobiography
You will be using the emacs text editor to create a file called
mybio.txt. The file will contain a brief autobiography about you
as follows:
- Begin by stating your name, major, and class standing (e.g., sophomore).
- Then, write a paragraph or two telling me a little bit about yourself.
Tell me
- where you are from and why you chose UMBC for your education,
- which programming languages you know, if any,
- which operating systems you are familiar with, if any, and
- why you are taking this course.
Do not leave out any of this information!
To create your autobiography file, do the following.
- Enter the emacs editor by typing: emacs mybio.txt
- Simply type in the information specified above. Edit any mistakes using
the Backspace or Delete key to backspace and the Ctl-d sequence to
delete a character. (Use the attached "Summary of Common emacs/xemacs Commands" as
a reference. I have placed arrows next to the "more important" commands.)
- Save your work by typing Ctl-x and then Ctl-s.
- Exit emacs by typing Ctl-x and then Ctl-c.
- You will know that you have exited emacs and are again talking to the Linux system if you see the linux1[#]% or linux2[#]% or linux3[#]% prompt.
- You can check that the file mybio.txt is in your directory by
typing: ls
- Use the pine E-mail Client to Send an E-mail With an Attachment
You are now going to use pine to send an e-mail to me that has
the mybio.txt file that you created as an attachment. You will also send
a carbon copy (cc) to our TA, Gaurav Jolly.
To accomplish this, do the following.
- Enter pine by typing: pine
- The pine main menu should appear. Type: c to begin composing a new e-mail.
- Next to To:, type: smitchel@csee.umbc.edu
- Next to Cc:, type: jolly1@umbc.edu
- Next to Attchmnt:, type: mybio.txt
- Next to Subject:, type: Autobiography for your name
- In the Message Text area, type: Here is my autobiography!
followed by your name and CMSC 104, Section 0301.
- To send the e-mail, type Ctl-x and then y.
- Type: q to exit out of pine.
- You are done when you receive the system prompt of linux1[#]% or
linux2[#]% or linux3[#]% back.
- Log Off the Linux System
When you are done with this exercise, log off of the Linux system by following
the instructions on the attached "Logging On and Off Using Tera Term" sheet.