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 Admin - Day 3

Goals

In this session you will:
  • learn the unix filesystem and layout
  • use find
  • use tar
  • learn how your server relates to its network
  • learn the boot/reboot process

Review

POST

  1. How can your get feedback on why a user is failing login?
  2. How can you view your logs in real time?
  3. How can you communicate with users, like in the case of an impending of an impending reboot? How is this useful?
  4. Which files are given to new users? Where are they found?

the unix filesystem and layout

  • everything is a file!
  • everything stems from /
  • every partition is mounted on a mountpoint
  • see diagram on pg. 395
    • /
    • /var/log
    • /var/spool
    • /tmp
    • /usr/bin
    • /usr/sbin
    • /usr/local/bin

use find

  • find /
  • find . | grep
  • find -atime +180
  • find /somedir -mtime +7
  • find -name pattern
  • find . -name *.txt -print
  • find . -name *.txt -exec cat {}\;

use tar

Poor man's backup. Your vendor-supplied or commercial backup app will require individual study.
  • tar cvf /path/to/tarball.tar /target make tarball
  • tar xvf /path/to/tarball.tar untar!
  • tar czvf /path/to/tarball.tar /target make inline zipped tarball
  • tar xzvf /path/to/tarball.tar /target untar inline zipped tarball
  • tar tzvf /path/to/tarball.tar view contents of inline zipped tarball

learn how your server relates to its network

  • tcp/ip
  • hostname
  • localhost
  • fakenets
  • inetd v. daemons
  • ping
  • traceroute
  • nslookup
  • whois

Homework

  • cron 383-391
  • security 199-272
  • captive shells 187
  • adding drives 421-430, 442-448
  • terminal hangs 542-543
  • adding software 232-234


http://www.mousetrap.net/syllabus/admin_unix_pt1/day3.html
$Id: day3.orb,v 1.5 2003/02/17 20:44:31 mouse Exp $


© 1994-2002 jason carr.
distributed under the terms of the GNU Free Documentation License.

jason carr

Reminders

  • Classroom temperature can be wildly variable. Dress lightly and bring layers.
  • your username is based on the class title and the last two digits of your workstation's hostname.
  • remember to take your work with you.