squeak!
Syllabus Homepage
Course Overview
Course resources
Day 1
Day 2
Day 3
Day 4
Common errors
Internet Glossary
About Your Instructor
Credits: This site powered by the vi text editor, apache webserver, perl scripting, and Debian linux.
squeak!

Unix Intermediate - Day 1

Admin

Texas state survey and Roll.

Goals

In this session you will:
  • log in securely
  • learn to love your shell
  • use email and news clients
  • get a refresher on in/output redirection

logging in

  • at the console
  • telnet
  • ssh (greatly preferred)
  • build a trivial shell script to automate the process

Shell: learn it, love it, live it

  • there are many different shells
  • refresher environmental vars
  • most common shells for Solaris and Linux users: ksh and bash
  • temporarily loading another shell
  • changing your shell permanently through /etc/passwd
  • command line history
  • filename completion
  • changing your .login and rc files.

Redirection

  • redirecting STDOUT >
  • redirecting STDIN <
  • redirecting both
  • redirecting STDERR 2>
  • piping STDOUT to STDIN |

Email and News clients

mail

mail is primitive, suitable mainly for sending short notes to someone.
  • man mail
  • command line mode: mail [-s subject] to-addr
    • ctrl-d on blank line to terminate entry.
    • interactive mode: mail
      • will list all your mail
      • ? to get minimal help
      • d message list: delete messages in list
      • u message list: undelete messages in list
      • R message list: Reply
      • m user list: mail to users
      • message number: show/read message
      • quit: quit!

    talking to sendmail

    • input | /path/to/sendmail -v recipient

    pine

    pine (Pine Is Not Elm) is a full-featured mail reader. It also has some support for news reading. It is most famous as the source for the pico text editor. It is not installed by default on unix boxes (due to copyright issues) but is still very popular.
    • man pine
    • pine
    • menus at the bottom of the screen
    • all message composition is done in pico unless specified otherwise
    • auto-quoting
    • customization available in the Setup | Config menus.
    • powerful sorting mechanism with sort
    • full-screen app, so may appear to run more slowly

    elm

    • man elm
    • menus frequently at the bottom of the screen
    • all message composition is done in vi or default editor unless specified otherwise
    • i to return to index from message view
    • vi-like j/k navigation in index
    • "copy message" text refers to quoting.

    Homework

    • scripting, pp754-65.
    • cron, pp. 412-13
    • quota, p. 479
    • tar, pp. 443-44.
    • ftp, pp. 693-95.


    http://www.mousetrap.net/syllabus/interunix/day1.html
    $Id: day1.orb,v 1.11 2003/02/01 05:10:25 mouse Exp $

    Remember, your login is based on your machine's hostname, not on any other number.
    ~/[initials] refers to the subdirectory under your homedir, named after your initials. Everything except for .dotfiles will be stored in your ~/[initials] directory.


© 1995-2001 jason carr
Distributed under the terms of the GNU Free Documentation License.