\documentstyle[a4wide]{harticle}

%%%%%%%%%%%%%%%%%%%%%%%%%
% lslide.sty - version 2.0 (March 1992)
% by Young U. Ryu
%
% o  There is a sample file in the end of the commented area.
%    LaTeX (or AmSLaTeX) it at least twice and print.
%                                    ^^^^^
% o  lslide.sty is a LaTeX/AmSLaTeX style file for
%       presentation slide typesetting.
%    It was developed for my personal use. That is,
%       it is a prototype. It may be improved in the future.
%       See Final Notes, Bugs, Comments, etc.
%
% o  It generates a title page, tables of contents,
%    separate section heading pages, and slides
%    with heads and foots inside a nice frame.
%
% o  No hyphenations:
%            Hyphenated words are not easily readable
%            in presentation slides, in my opinion.
%    No right-justifications
%            Right justifications may place too big spaces
%            between words, when hyphenations are turned off.
%
%    If you want hyphenations and/or right-justifications
%      go to the "defaults" section in the end of this style file
%      and comment commands to make them.
%
% o  A postscript driver is NOT required.
%                           ^^^
% o  Version 2.0 Update
%    A. Frame macros are simplified and redundant macros are removed.
%    B. A bug in \slidecontents & \sectioncontents is fixed.
%       Bug: When filename.toc exists but is empty, the previous
%            version reports `\item ...' missing error.
%    C. Thanks to Tomoki Shiratori, an oval frame is added.
%    D. \typeA & \typeB are renamed to \vertcenter & \verttop.
%    E. \pframeA & \pframeB are renamed to \doubleboxframe & \shadowframe.
%    F. \sframeA & \sframeB are renamed to \boxsecframe & \shadowsecframe.
%
% o  Version 1.2 Update
%    A. A shadow page frame added.
%    B. \SFbox changed.
%    C. \vertcenter and \verttop def. changed.
%    D. Extra spaces following page no. in tables of contents are removed.
%
% o  Version 1.1 Update
%    A. Default page dimensions changed.
%    B. \leftmargini of itemize env.: \leftskip is always added.
%          The left skip of itemize env. is (almost) same as
%          that of enumerate env.
%    C. \SFbox added - places a shadow box.
%
% o  How to use it:
%    A. \documentstyle[12pt,lslide]{article}   % <- Minimal Req.
%       \documentstyle[12pt,amssymbols,lslide]{article}
%                             % <- use amssymbols.sty for LaTeX if available
%       \documentstyle[12pt,amstex,amssymb,lslide]{article}
%                             % <- may be used with AmSLaTeX
%                             % Personally, I prefer it because it can
%                             % easily handle various shapes/styles of fonts.
%
%       Or you may use art11.sty to make the whole slide fonts smaller.
%        \documentstyle[11pt,lslide]{article}
%        \documentstyle[11pt,amssymbols,lslide]{article}
%        \documentstyle[11pt,amstex,amssymb,lslide]{article}
%       (To make fonts smaller, you may also use \smallerfonts. See B.)
%       Note: There is no font size difference between art10.sty
%             and art11.sty, when fonts >= \large are used.
%             If you use art10.sty, head and foot fonts of slides
%             become too small.
%
%    B. \portrait (default)
%       \landscape
%           (Should be placed before \begin{document})
%       If your print driver allows the 90 degree rotation of the
%       output pages:
%          e.g., emTeX drivers - /tr1 or /tr3
%                 e.x.,  hp myslide /tr1
%          e.g., dvips    -t landscape
%          e.g., dvi2ps   -o landscape
%       or your printer has a sideway printing mode,
%       you may use \landscape.
%
%       Note: dvips (version 5.47 and others?) understands
%
%                   \special{landscape}
%
%             which makes the entire document printed
%             in the landscape mode.
%
%      Probably, you must modify the page dimensions.
%      Place those modifications after \portrait or
%      \landscape. If you use the default (i.e., do not
%      use \portrait or \landscape), place them just after
%      \documentstyle[...]{...}.
%      e.g., \addtolength{\textwidth}{...in}
%            \addtolength{\textheight}{...in}
%            \addtolength{\topmargin}{...in}
%            \addtolength{\oddsidemargin}{...in}
%            \addtolength{\evensidemargin}{...in}
%
%       \defaultskip=...in or ...pt or ...em or ......
%         horizontal spaces at the left and the right of slide
%         bodies (within the slide frame)
%         The default is:
%             \defaultskip=1em
%
%       \vertcenter (default)
%       \verttop
%           (Should be placed before \begin{document})
%       \vertcenter option places \vspace*{\fill} on the top and bottom
%       of each slide page and after \subsection. (Vertical centering)
%       \verttop option places \vspace*{.5em} before \subsection and
%       \vspace*{1em} after \subsection; not \vspace on the top
%       or bottom of each slide page.
%
%       \doubleboxframe
%       \shadowframe (default)
%           (Should be placed before \begin{document})
%       \doubleboxframe option places double boxes around each page.
%       \shadowframe option places a shadow box around each page.
%       \ovalframe option places an oval around each page.
%
%       \boxsecframe
%       \shadowsecframe (default)
%           (Should be placed before \begin{document})
%       \boxsecframe option places a single box around subsection title.
%       \shadowsecframe option places a shadow box around subsection title.
%
%       \contentsname{...}
%           (Placed before or after \begin{document})
%         Heading of tables of contents. Default is:
%            \contentsname{CONTENTS}
%
%       \smallerfonts
%           (Placed before \begin{document})
%         Make fonts smaller thoughout the whole file.
%         If you think the default fonts are too big,
%            use this command.
%         Or, you may use art11.sty to make fonts smaller. (See A.)
%
%       \smallcontentsfonts
%           (Placed before or after \begin{document})
%         Makes fonts for tables of contents smaller.
%         Use when the table of content occupies more than one page.
%         If it is used with \smallerfonts, it must placed after
%            \smallerfonts.
%
%    C. \title{T} or \title[T1]{T2}
%           (Placed before or after \begin{document})
%         T or T2 goes to the title page.
%         T or T1 goes to the left head of each page.
%       \author{A}
%           (Placed before or after \begin{document})
%         A goes to the title page and left foot of each page.
%       \organization{O}
%           (Placed before or after \begin{document})
%         O goes to the title page.
%       \date{D}
%           (Placed before or after \begin{document})
%         D goes to the title page.
%       \titlepage
%           (Placed after \begin{document})
%         Generates the title page.
%
%    From now on, everything should be placed after \begin{document}
%
%    D. \slidecontents or \slidecontents*
%           (Placed outside \begin{slide} ... \end{slide})
%         Generates a Table of Contents that Consists of Section Headings.
%         Usually placed after \titlepage
%         If * is placed, no page numbers will appear.
%
%       \sectioncontents or sectioncontents*
%           (Placed outside \begin{slide} ... \end{slide})
%         Generates a Table of Contents that Consists of Section Headings
%         and Subsection Heading of the Following Section.
%         Usually placed before \section{...}
%         If * is placed, no page numbers will appear.
%
%    E. \section{A} or \section[A1]{A2}
%           (Placed outside \begin{slide} ... \end{slide})
%         A or A2 goes to a separate page of section heading
%         A or A1 goes to a table of contents and the right head of each page.
%
%    F. \subsection{A}
%           (Placed inside \begin{slide} ... \end{slide})
%         A frame box surrounds A.
%         A goes to a table of contents for the section.
%
%    G. \begin{slide} ... \end{slide}
%         Generates a page of slide.
%         Your slide bodies are to be placed here.
%         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
%       \begin{slide}[dimension] ... \end{slide}
%         Adds horizontal spaces by "dimension (e.g. 1in, 3em, etc.)"
%           at the left and the right of the text body (within
%           the frame).
%         Only for that page of slide.
%         cf. \defaultskip = dimension
%             for all pages of slide
%
%    H. \Underbar{...} and \Underline{...}
%         Same as \underbar and \underline except that the rule
%         is thicker.
%
%    I. Font size (Notice that all start with a capital letter)
%       \Hugesize
%       \Largesize
%       \Normalsize    - default for slides
%       \Smallsize
%
%    J. Slide head and foot
%       \lhead{...}     default: \lhead{\slidetitle}
%       \chead{...}     default: \chead{\relax}   % empty
%       \rhead{...}     default: \rhead{\sectiontitle}
%       \lfoot{...}     default: \lfoot{\slideauthor}
%       \cfoot{...}     default: \cfoot{\relax}   % empty
%       \rfoot{...}     default: \rfoot{\thepage}
%
%    K. Miscellaneous
%       \slidetitle  - prints slide title (default: \hspace*{1pt})
%       \slideauthor - prints author name (default: \hspace*{1pt})
%       \authororga  - prints organization (default: \hspace*{1pt})
%       \slidedate   - prints date  (default: \today)
%       \sectiontitle - prints section heading
%
%       \pagestyle{slide} is default for slides
%           note: \ps@slide is defined in this style file
%       \pagestyle{empty} is default for the title page,
%                              tables of contents, and section heading pages.
%
%       \Fbox{box sep}{rule thickness}{...}
%          Places a box around ...
%          box sep = spaces between ... and box rules
%          rule thickness = as you can guess
%          e.x., \Fbox{3pt}{1pt}{Box Me}
%
%       \SFbox{box sep}{rule thickness}{shade thickness}{...}
%          Places a shadow box around ...
%          box sep = spaces between ... and box rules
%          e.x., \SFbox{3pt}{1pt}{2pt}{Box Me}
%
%    L. Final Notes, Bugs, Comments, etc.
%       This is a prototype. It will be extended in the future:
%          - Various types of slide frames are desirable.
%            Users may select.
%          - \begin{note} ... \end{note} is useful.
%          - Top-bottom centering (vertical centering) can be done by \vertcenter.
%            Left-right centering (horizontal centering) may be implemented.
%          - Postscript specific features ???
%            With postscript, lots of things can be done easily (?!).
%            But, I personally discourage postscript specific features,
%            because I myself use non-postscript printers more often.
%          - Probably, new font definitions are needed, instead of
%            using those (i.e. defaults) of LaTeX/AmSLaTeX, 'cause
%            many of them are not used at all and we may need
%            big fonts with various shapes.
%
%       How to get (bold) sans serif fonts instead of roman fonts:
%          - If you use AmSLaTeX (with the new font scheme), it's simple:
%                   \begin{document}\sf
%                   \begin{document}\sf\bf
%            Or something more ... (especially to get bold math)
%          - If you use LaTeX, it's not simple.
%            ``\begin{document}\sf\Normalsize'' or
%            ``\begin{document}\sf\Normalsize\bf''
%               handles many (but not all) cases.
%            The best way is to define a style file (or using
%               one if available) which sets \sf (or \sf\bf) as default.
%            Or you may create a .fmt file after modifying
%               lfonts.sty.
%          - Personally, I modified a font file (fontdef.max) for AmSLaTeX
%            and created a lslide.fmt file so that bold sans serif
%            is default for text and bold symbol fonts are
%            default for math.
%            However, unfortunately, not all AmS bold fonts
%            are available!!!
%
%       Bugs
%           - Probably a few (or many???).
%           - I can't locate them. I need your help...
%
%       E-mail bugs and comments to
%               young@emx.utexas.edu
%               youngryu@bongo.cc.utexas.edu
%
%
% A sample file: cut and paste under a new file name; uncomment.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentstyle[12pt,lslide]{article}
%   %\documentstyle[12pt,amssymbols,lslide]{article}
%           % <- if amssymbols.sty is available
%   %\documentstyle[12pt,amstex,amssymb,lslide]{article}
%           % <- if you use AmSLaTeX
%
%   %\landscape
%           % <- if your driver can rotate 90 degrees.
%           % e.x. in emTeX derivers:
%           %  hp filename /tr2
%           % \portrait is default.
%
%   % Addjust page dimenstions here if necessary. For example:
%   %\addtolength{\textwidth}{-.3in}
%   %\addtolength{\textheight}{.5in}
%   %\addtolength{\topmargin}{.02in}
%   %\addtolength{\oddsidemargin}{-.03in}
%   %\addtolength{\evensidemargin}{-.03in}
%
%   %\verttop
%           % compare it with \vertcenter that is the default
%
%   %\doubleboxframe % or \ovalframe
%           % compare them with \shadowframe that is the default
%
%   %\boxsecframe
%           % compare it with \shadowsecframe that is the default
%
%\begin{document}
%
%\title[Sample Slides with {\tt lslide.sty}]%
%      {Sample Slides \\
%       with {\tt lslide.sty}}
%
%\author{Thomas Magnum}
%
%\organization{Private Investigator's Association}
%
%\date{March 1992}
%
%\titlepage
%
%\slidecontents
%
%\sectioncontents
%
%\section{Introduction}
%
%\begin{slide}
%\subsection{Problems of Truth-Functional Logic}
%
%\Underbar{Case 1}
%
%\begin{enumerate}
%\item $\neg A$ \\
%      Therefore $A \rightarrow B$
%\item The Padre beach is not poluted. \\
%      Therefore, if the Padre beach is poluted, it is good for surfing.
%\end{enumerate}
%
%\vspace*{\fill}
%
%\Underbar{Case 2}
%
%\begin{enumerate}
%\item $B$ \\
%      Therefore $A \rightarrow B$
%\item The Padre beach is good for surfing. \\
%      Therefore, if the Padre beach is poluted, it is good for surfing.
%\end{enumerate}
%\end{slide}
%
%\begin{slide}[.5in]
%\Underbar{Case 3}
%
%\begin{enumerate}
%\item $A \rightarrow B$ \\
%      $C \rightarrow \neg B$ \\
%      $C \rightarrow A$ \\
%      $C$ \\
%      Therefore $B \wedge \neg B$
%\item If it is a bird, then it can fly. \\
%      If it is penguin, then it cannot fly. \\
%      If it is penguin, then it is a bird. \\
%      It is a bird \\
%      Therefore, it cannot fly.
%\end{enumerate}
%\end{slide}
%
%\sectioncontents
%
%\section{Next Section}
%
%\begin{slide}[1in]
%Whatever it is. What ever it is.
%Whatever it is. What ever it is.
%
%\vspace*{1.5em}
%
%\begin{enumerate}
%\item Item 1 with Normalsize.
%      \begin{enumerate}\Smallsize
%      \item Item 1.1 with Smallsize.
%      \item Item 1.2 with Smallsize.
%      \end{enumerate}
%\item Item 2 with Normalsize.
%\end{enumerate}
%\end{slide}
%
%\end{document}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% End of the sample file%%%
%

\typeout{Presentation Slide Style File for LaTeX/AmSLaTeX, version 2.0}
\typeout{by Young. U. Ryu - March 1992}

\def\landscape{%
    \sloppy
    \textwidth 8.8in
    \textheight 6in
    \topmargin -.6in
    \oddsidemargin -.18in
    \evensidemargin\oddsidemargin}

\def\portrait{%
    \sloppy
    \textwidth 6in
    \textheight 8.8in
    \topmargin -.65in
    \oddsidemargin -.3in
    \evensidemargin\oddsidemargin}

% added by cruise...
%
% No Frame for the whole page
% \@my@no@frame{thinkness}{hspace}{vspace}{...}
%
\newdimen \@tempdimc 
\newdimen \@tempdimd

\def\@my@no@frame#1#2#3#4{\vbox{%
    \setbox\@tempboxa\hbox{#4}%
    \@tempdima#3
    \advance\@tempdima #1 \advance\@tempdima \dp\@tempboxa
    \hbox{\lower \@tempdima%
          \hbox{\vbox{\hrule depth0pt height #1%
                      \hbox{\vrule depth0pt width #1%
		            \hskip#2%
			    \vbox{\vskip#3 \box\@tempboxa\vskip#3}%
			    \hskip#2%
			    \vrule depth0pt width #1}
		      \hrule depth0pt height #1}}}}}

%
% Frame for the whole page
% \@my@box@frame{thinkness}{hspace}{vspace}{...}
%
\newdimen \@tempdimc 
\newdimen \@tempdimd

\def\@my@box@frame#1#2#3#4{\vbox{%
    \setbox\@tempboxa\hbox{#4}%
    \@tempdima#3
    \advance\@tempdima #1 \advance\@tempdima \dp\@tempboxa
    \hbox{\lower \@tempdima%
          \hbox{\vbox{\hrule depth0pt height #1%
                      \hbox{\vrule depth0pt width #1%
		            \hskip#2%
			    \vbox{\vskip#3 \box\@tempboxa\vskip#3}%
			    \hskip#2%
			    \vrule depth0pt width #1}
		      \hrule depth0pt height #1}}}}}

%
% Shadow Frame for the whole page:
% \@my@shadow@box@frame{frame thinkness}{shade thickness}{hspace}{vspace}{...}
%

\def\@my@shadow@box@frame#1#2#3#4#5{\vbox{%
    \setbox\@tempboxa\hbox{#5}%
    \@tempdima#4
    \advance\@tempdima #1 \advance\@tempdima \dp\@tempboxa
    \setbox\@tempboxa%
     \hbox{\lower \@tempdima%
          \hbox{\vbox{\hrule depth0pt height #1%
                      \hbox{\vrule depth0pt width #1%
		            \hskip#3%
			    \vbox{\vskip#4 \box\@tempboxa\vskip#4}%
			    \hskip#3%
			    \vrule depth0pt width #1}
		      \hrule depth0pt height #1}}}%
     \@tempdimc\ht\@tempboxa \advance\@tempdimc-#2
     \advance\@tempdimc\@tempdima
     \@tempdimd\wd\@tempboxa
     \hbox{\box\@tempboxa\relax%
           \lower\@tempdima\hbox{\vrule width#2 height\@tempdimc depth0pt}}
    \nointerlineskip\moveright#2
    \vbox{\hrule height#2 width\@tempdimd depth0pt}}}

%
% Oval frame: by Tomoki Shiratori
% \@my@oval@frame{thickness}{hspace}{vspace}{...}
%     thickness = \thinlines or \thicklines

\def\@my@oval@frame#1#2#3#4{\vbox{%
   #1%
   \setbox0 = \vbox{%
        \vskip#3\relax
        #4\relax
        \vskip#3\relax}%
   \@tempdimc \ifdim \ht0 >\wd0 \wd0\else \ht0 \fi%
   \divide\@tempdimc 10\relax
   \@getcirc{\@tempdimc}%
   \@tempdimc\ht0%
   \advance\@tempdimc -\@tempdima%
   \advance\@tempdimc 2\@wholewidth%
   \@tempdimd .5\@tempdima \advance\@tempdimd -\@wholewidth%
   \setbox0 = \hbox{%
       \raise\@tempdimd\hbox{\vrule height\@tempdimc width\@wholewidth}%
       \hskip#2\relax
       \box0\relax
       \hskip#2\relax
       \raise\@tempdimd\hbox{\vrule height\@tempdimc width\@wholewidth}}%
   \@tempdimd\wd0 \@tempdimc\@tempdimd%
   \advance\@tempdimc -\@tempdima%
   \vskip -.5\@tempdima \vskip\@wholewidth%
   \hbox to\@tempdimd{%
       \@tempcntb\@tempcnta \advance\@tempcntb 3\relax
       {\@circlefnt \char\@tempcntb\kern -.5\@tempdima}%
       \vbox{\hrule height\@wholewidth width\@tempdimc}%
       {\@circlefnt \kern .5\@tempdima \kern -\@wholewidth \char\@tempcnta%
        \kern -\@tempdima \kern\@wholewidth}}%
   \vskip -.5\@tempdima%
   \box0\relax
   \vskip -.5\@tempdima%
   \hbox to\@tempdimd{%
       \@tempcntb\@tempcnta \advance\@tempcntb\tw@\relax
       {\@circlefnt \char\@tempcntb\kern -.5\@tempdima}%
       \vbox{\hrule height\@wholewidth width\@tempdimc}%
       {\advance\@tempcntb\m@ne%
        \@circlefnt \kern .5\@tempdima \kern -\@wholewidth \char\@tempcntb%
        \kern -\@tempdima \kern \@wholewidth}}%
   \vskip -.5\@tempdima \vskip\@wholewidth}}%

%
% modification of \@outputpage (from latex.tex)
%
\def\@outputpage{\begingroup\catcode`\ =10
     \let\-\@dischyph \let\'\@acci \let\`\@accii \let\=\@acciii
    \if@specialpage
     \global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
     \if@twoside
       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
            \let\@themargin\oddsidemargin
          \else \let\@thehead\@evenhead
          \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
     \fi\fi
     \shipout
     \vbox{\normalsize \baselineskip\z@ \lineskip\z@
           \let\par\@@par %% 15 Sep 87
           \vskip \topmargin \moveright\@themargin
	   \my@frame{%
           \vbox{\setbox\@tempboxa
                   \vbox to\headheight{\vfil \hbox to\textwidth
                                       {\let\label\@gobble \let\index\@gobble
                                         \@thehead}} %% 22 Feb 87
                 \dp\@tempboxa\z@
                 \box\@tempboxa
                 \vskip \headsep
                 \box\@outputbox
                 \baselineskip\footskip
                 \hbox to\textwidth{\let\label\@gobble
                           \let\index\@gobble  %% 22 Feb 87
                           \@thefoot}}%
           }% end of my@frame
	   }%
           \global\@colht\textheight
           \endgroup\stepcounter{page}\let\firstmark\botmark}

%
% Heading and Footing
%  In part, from fancyheading.sty
%

\def\lhead#1{\gdef\@elhead{#1}\gdef\@olhead{#1}}
\def\chead#1{\gdef\@echead{#1}\gdef\@ochead{#1}}
\def\rhead#1{\gdef\@erhead{#1}\gdef\@orhead{#1}}

\def\lfoot#1{\gdef\@elfoot{#1}\gdef\@olfoot{#1}}
\def\cfoot#1{\gdef\@ecfoot{#1}\gdef\@ocfoot{#1}}
\def\rfoot#1{\gdef\@erfoot{#1}\gdef\@orfoot{#1}}

\def\@slidehead#1#2#3#4#5{#1\hbox to\textwidth%
    {\vbox{\hbox{\rlap{\parbox[b]{\textwidth}%
    {\raggedright#2\strut}}\hfill\parbox[b]{\textwidth}%
    {\centering#3\strut}\hfill\llap{\parbox[b]{\textwidth}%
    {\raggedleft#4\strut}}}}}#5}

\def\@slidefoot#1#2#3#4#5{#1\hbox to\textwidth%
    {\vbox{\hbox{\rlap{\parbox[t]{\textwidth}%
    {\raggedright#2\strut}}\hfill\parbox[t]{\textwidth}%
    {\centering#3\strut}\hfill\llap{\parbox[t]{\textwidth}%
    {\raggedleft#4\strut}}}}}#5}

\def\ps@slide{%
    \def\@oddhead{\@slidehead\relax\@olhead\@ochead\@orhead\hss}%
    \def\@oddfoot{\@slidefoot\relax\@olfoot\@ocfoot\@orfoot\hss}%
    \def\@evenhead{\@slidehead\hss\@elhead\@echead\@erhead\relax}%
    \def\@evenfoot{\@slidefoot\hss\@elfoot\@ecfoot\@erfoot\relax}%
    }

\def\ps@empty{%
    \def\@oddhead{\@slidehead\relax\space\space\space\hss}%
    \def\@oddfoot{\@slidefoot\relax\space\space\space\hss}%
    \def\@evenhead{\@slidehead\hss\space\space\space\relax}%
    \def\@evenfoot{\@slidefoot\hss\space\space\space\relax}%
    }

%
% by modifying \fbox in latex.tex
% \Fbox{box sep}{box rule width/height}{...}
%
\def\Fbox#1#2#3{\@my@box@frame{#2}{#1}{#1}{#3}}

%
% Places a shadow box
% \SFbox{box sep}{box rule width/height}{shade rule width/height}{...}
% 
\def\SFbox#1#2#3#4{\@my@shadow@box@frame{#2}{#3}{#1}{#1}{#4}}

%
% by modifying \fbox in latex.tex
% \Underline & \Underbar
%
\def\Underline#1{%
    \leavevmode%
    \setbox\@tempboxa\hbox{#1}%
    \@tempdima1pt
    \advance\@tempdima 3pt
    \advance\@tempdima \dp\@tempboxa
    \hbox{\lower \@tempdima%
          \hbox{\vbox{\hbox{\vbox{\box\@tempboxa\vskip3pt}}%
                      \hrule height1pt}}}}

% from plain.tex
\def\Underbar#1{$\setbox\z@\hbox{#1}\dp\z@\z@
  \m@th \Underline{\box\z@}$}

%
% Things to be entered in texts
%
\def\title{\@ifnextchar[{\@@Title}{\@Title}}
\def\@Title#1{\def\slide@title{\uppercase{#1}}
              \def\slidetitle{#1}}
\def\@@Title[#1]#2{\def\slide@title{\uppercase{#2}}
              \def\slidetitle{#1}}
\def\slide@title{\hspace*{1pt}}
\def\slidetitle{\hspace*{1pt}}

\def\author{\@ifnextchar[{\@@Author}{\@Author}}
\def\@@Author[#1]#2{\def\slide@author{#2}%
                    \def\slideauthor{#1}}
\def\@Author#1{\def\slide@author{#1}
               \def\slideauthor{#1}}
\def\slide@author{\hspace*{1pt}}
\def\slideauthor{\hspace*{1pt}}

\def\organization#1{\def\authororga{#1}}
\def\authororga{\hspace*{1pt}}

\def\date#1{\def\slidedate{#1}}
\def\slidedate{\today}

%
% section and subsection
%
\newcounter{sec@ctr}
\setcounter{sec@ctr}{1}

\def\section{\@ifnextchar[{\@@Section}{\@Section}}

\def\@Section#1{\clearpage
               \thispagestyle{empty}
               \vspace*{\fill}
	       \begin{center}
	       \Hugesize\uppercase{#1}
	       \end{center}
	       \vspace*{\fill}
	       \def\sectiontitle{#1}
	       \Add@@secitem{toc}{\thesec@ctr}{#1}
	       \addtocounter{sec@ctr}{1}
	       \clearpage}

\def\@@Section[#1]#2{\clearpage
               \thispagestyle{empty}
               \vspace*{\fill}
	       \begin{center}
	       \Hugesize\uppercase{#2}
	       \end{center}
	       \vspace*{\fill}
	       \def\sectiontitle{#1}
	       \Add@@secitem{toc}{\thesec@ctr}{#1}
	       \addtocounter{sec@ctr}{1}
	       \clearpage}

\def\sectiontitle{\relax}

\def\Add@@secitem#1#2#3{\if@filesw \begingroup
\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
\def\protect##1{\string\string\string##1\string\space
   \space}\@temptokena{\thepage}%
\edef\@tempa{\write \@auxout{\string\@writefile{#1}{\protect
     \secitem{#2}{#3}{\the\@temptokena}}}}\@tempa
   \if@nobreak \ifvmode\nobreak\fi\fi\endgroup\fi}
 
\def\subsection#1{\subsec@begin@vspace
                  \addtocounter{sec@ctr}{-1}
                  \Add@@subsecitem{toc}{\thesec@ctr}{#1}
		  \addtocounter{sec@ctr}{1}
		  \hspace*{\fill}
		  \sub@section@frame{\Largesize #1}
		  \hspace*{\fill}
		  \subsec@end@vspace}

\def\Add@@subsecitem#1#2#3{\if@filesw \begingroup
\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
\def\protect##1{\string\string\string##1\string\space
   \space}\@temptokena{\thepage}%
\edef\@tempa{\write \@auxout{\string\@writefile{#1}{\protect
     \subsecitem{#2}{#3}{\the\@temptokena}}}}\@tempa
   \if@nobreak \ifvmode\nobreak\fi\fi\endgroup\fi}

%
% titlepage
%
\def\titlepage{\thispagestyle{empty}
    \vspace*{\fill}
    \begin{center}
    \Hugesize \slide@title \\ [2em]
    \Normalsize\slide@author \\ [.5em]
    \Normalsize\authororga \\ [1em]
    \Normalsize\slidedate
    \end{center}
    \vspace*{\fill}
    \setcounter{page}{0}
    \clearpage}

%
% tables of contents
%
\def\contentsname{CONTENTS}

\newcounter{@@@dum@@@}
\setcounter{@@@dum@@@}{0}

\def\slidecontents{\@ifnextchar*{\@@slidecontents}{\@slidecontents}}

\def\@slidecontents{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
	   \def\secitem##1##2##3{%
	       \ifnum\value{@@@dum@@@}=0%
	          \setcounter{@@@dum@@@}{1}%
	          \begin{citemize}\contsize\fi
 	          \item[$\bullet$] ##2 \dotfill\ ##3\ignorespaces}
	   \def\subsecitem##1##2##3{\ignorespaces}
	   \clearpage
	   \thispagestyle{empty}
	   \addtocounter{page}{-1}
	   \subsec@begin@vspace
           \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
	   \hspace*{\fill}
	   \subsec@end@vspace
           \input{\jobname.toc}
	   \ifnum\value{@@@dum@@@}=1%
	      \setcounter{@@@dum@@@}{0}%
	      \end{citemize}\fi
	   \vspace*{\fill}
	   \clearpage
	   \fi}

\def\@@slidecontents*{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
	   \def\secitem##1##2##3{%
	       \ifnum\value{@@@dum@@@}=0%
	          \setcounter{@@@dum@@@}{1}%
	          \begin{citemize}\contsize\fi
	          \item[$\bullet$] ##2 \hspace{\fill}}
	   \def\subsecitem##1##2##3{\ignorespaces}
	   \clearpage
	   \thispagestyle{empty}
	   \addtocounter{page}{-1}
	   \subsec@begin@vspace
	   \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
	   \hspace*{\fill}
	   \subsec@end@vspace
           \input{\jobname.toc}
	   \ifnum\value{@@@dum@@@}=1%
	      \setcounter{@@@dum@@@}{0}%
	      \end{citemize}\fi
	   \vspace*{\fill}
	   \clearpage
	   \fi}

\def\sectioncontents{\@ifnextchar*{\@@sectioncontents}{\@sectioncontents}}

\newcounter{@@@dummy@@@}
\setcounter{@@@dummy@@@}{0}

\@ifundefined{checkmark}%
    {\def\mycheckmark{\surd}}%
    {\def\mycheckmark{\checkmark}}

\def\mysecpointer{\Rightarrow}

\def\@sectioncontents{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
	   \def\secitem##1##2##3{%
	       \ifnum\value{@@@dum@@@}=0%
	          \setcounter{@@@dum@@@}{1}%
	          \begin{citemize}\contsize\fi
	       \ifnum\value{@@@dummy@@@}=1%
	          \setcounter{@@@dummy@@@}{0}%
	          \end{ccitemize}\fi
	       \item[\ifnum\value{sec@ctr}>##1$\mycheckmark\;\bullet$%
	             \else\ifnum\value{sec@ctr}=##1$\mysecpointer\bullet$%
	             \else$\bullet$\fi\fi] ##2 \dotfill\ ##3\ignorespaces}
           \def\subsecitem##1##2##3{%
	       \ifnum\value{sec@ctr}=##1%
	          \ifnum\value{@@@dummy@@@}=0
	             \setcounter{@@@dummy@@@}{1}
	             \begin{ccitemize}\contsizesize\fi
	          \item[$\bullet$] ##2 \hspace*{\fill}\fi}
	   \clearpage
	   \thispagestyle{empty}
	   \addtocounter{page}{-1}
	   \subsec@begin@vspace
           \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
	   \hspace*{\fill}
	   \subsec@end@vspace
           \input{\jobname.toc}
	   \ifnum\value{@@@dummy@@@}=1%
 	      \setcounter{@@@dummy@@@}{0}%
	      \end{ccitemize}\fi
	   \ifnum\value{@@@dum@@@}=1%
	      \setcounter{@@@dum@@@}{0}%
	      \end{citemize}\fi
	   \vspace*{\fill}
	   \clearpage
	   \fi}

\def\@@sectioncontents*{\openin1 \jobname.toc \ifeof1 \typeout
           {No file \jobname.toc}\else\closein1\relax
	   \def\secitem##1##2##3{%
	       \ifnum\value{@@@dum@@@}=0%
	          \setcounter{@@@dum@@@}{1}%
	          \begin{citemize}\contsize\fi
	       \ifnum\value{@@@dummy@@@}=1%
	          \setcounter{@@@dummy@@@}{0}%
	          \end{ccitemize}\fi
	       \item[\ifnum\value{sec@ctr}>##1$\mycheckmark\;\bullet$%
	             \else\ifnum\value{sec@ctr}=##1$\mysecpointer\bullet$%
	             \else$\bullet$\fi\fi] ##2 \hspace{\fill}}
           \def\subsecitem##1##2##3{%
	       \ifnum\value{sec@ctr}=##1%
	          \ifnum\value{@@@dummy@@@}=0
	             \setcounter{@@@dummy@@@}{1}
	             \begin{ccitemize}\contsizesize\fi
	          \item[$\bullet$] ##2 \hspace{\fill}\fi}
	   \clearpage
	   \thispagestyle{empty}
	   \addtocounter{page}{-1}
	   \subsec@begin@vspace
           \hspace*{\fill}
           \sub@section@frame{\Largesize\contentsname}
	   \hspace*{\fill}
	   \subsec@end@vspace
           \input{\jobname.toc}
	   \ifnum\value{@@@dummy@@@}=1%
	       \setcounter{@@@dummy@@@}{0}%
	       \end{ccitemize}\fi
           \ifnum\value{@@@dum@@@}=1%
	       \setcounter{@@@dum@@@}{0}%
	       \end{citemize}\fi
	   \clearpage
	   \vspace*{\fill}
	   \fi}

\def\citemize{\list{\relax}%
    {\leftmargin=2.5em
     \rightmargin=.5em
     \labelwidth=2em
     \labelsep=.5em
     \def\makelabel##1{\hss\llap{##1}}}}
\let\endcitemize =\endlist

\def\ccitemize{\list{\relax}%
    {\leftmargin=1em
     \rightmargin=0em
     \labelwidth=.5em
     \labelsep=.5em
     \def\makelabel##1{\hss\llap{##1}}}}
\let\endccitemize =\endlist

%
% modifications to enumerate env.
%
\def\labelenumi{\theenumi.}
	\def\theenumi{\arabic{enumi}}
\def\labelenumii{\theenumi.\theenumii.}
	\def\theenumii{\arabic{enumii}}
	\def\p@enumii{\theenumi.}
\def\labelenumiii{\theenumi.\theenumii.\theenumiii.}
	\def\theenumiii{\arabic{enumiii}}
	\def\p@enumiii{\theenumi.\theenumii.}
\def\labelenumiv{\theenumi.\theenumii.\theenumiii.\theenumiv.}
	\def\theenumiv{\arabic{enumiv}}
	\def\p@enumiv{\theenumi.\theenumii.\theenumiii.}

\def\enumerate{\ifnum \@enumdepth >3 \@toodeep\else
      \advance\@enumdepth \@ne
      \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
      {\csname label\@enumctr\endcsname}{\usecounter{\@enumctr}
      \labelsep =  .2em
      \ifnum \@enumdepth = 1
             \labelwidth = 1em
	     \leftmargin=\leftskip
	     \advance\leftmargin1.8em
      \else \ifnum \@enumdepth = 2
                   \labelwidth = 1.6em
                   \leftmargin = 1.8em  %\leftmargin = \labelwidth+\labelsep
            \else \ifnum \@enumdepth = 3
                         \labelwidth = 2.4em
                         \leftmargin = 2.6em
                  \else
                         \labelwidth = 3.2em
                         \leftmargin = 3.4em
                  \fi
            \fi
      \fi
      \def\makelabel##1{\rlap{##1}\hss}}\fi}

%
% Font sizes
%
\def\Hugesize{\Huge}   % in art12.sty, \Huge = \huge
\def\Largesize{\huge}  % in art11.sty, \Huge > \huge
\def\Normalsize{\LARGE}
\def\Smallsize{\Large}

\def\contsize{\LARGE}
\def\contsizesize{\Large}
\def\smallcontentsfonts{%
    \def\contsize{\Large}
    \def\contsizesize{\large}}

\def\smallerfonts{%
    \def\Hugesize{\huge}
    \def\Largesize{\LARGE}
    \def\Normalsize{\Large}
    \def\Smallsize{\large}
    \def\contsize{\Large}
    \def\contsizesize{\large}
    \def\smallcontentsfonts{%
        \def\contsize{\large}
        \def\contsizesize{\normalsize}}%
    }
%
% modifications to document env.
%

\let\@@@@document\document
\def\document{\@@@@document
    \Normalsize}
\let\@@end@@document\enddocument
\def\enddocument{%
\if@filesw \newwrite\tf@toc
  \immediate\openout\tf@toc=\jobname.toc
  \typeout{Writing toc file \jobname.toc}\fi
    \@@end@@document}

%
% slide environment
%
\newdimen\defaultskip
\def\slide{\@ifnextchar[{\@@Slide}{\@Slide}}
\def\@Slide{\@@Slide[0pt]}
\def\@@Slide[#1]{\slide@begin@vspace
           \begingroup
	   \advance\leftskip\defaultskip
	   \advance\rightskip\defaultskip
	   \advance\leftskip#1
	   \advance\rightskip#1
           \advance\leftmargini\leftskip}
\def\endslide{\par\endgroup
              \slide@end@vspace
              \clearpage}

%
% Page vertical spacing types
%
\def\vertcenter{%
    \def\subsec@begin@vspace{\vspace*{\fill}}
    \def\subsec@end@vspace{\vspace*{\fill}}
    \def\slide@begin@vspace{\vspace*{\fill}}
    \def\slide@end@vspace{\vspace*{\fill}}%
    }
\def\verttop{%
    \def\subsec@begin@vspace{\relax}
    \def\subsec@end@vspace{\vspace*{2em}}
    \def\slide@begin@vspace{\relax}
    \def\slide@end@vspace{\relax}%
    }

%
% Page Frame Definitions
%
\def\doubleboxframe{%
    \def\my@frame##1{%
        \@my@box@frame{.4em}{.3em}{.3em}%
	{\@my@box@frame{1.6pt}{.8em}{.8em}{##1}}}}

\def\shadowframe{%
    \def\my@frame##1{%
        \@my@shadow@box@frame{1.6pt}{3.2pt}{.8em}{.8em}{##1}}}

\def\ovalframe{%
 \def\my@frame##1{\@my@oval@frame{\thicklines}{.4em}{.3em}{##1}}}

% added by cruise...
\def\noframe{%
 \def\my@frame##1{%
     \@my@box@frame{0pt}{0pt}{0pt}%
     {\@my@box@frame{0pt}{0pt}{0pt}{##1}}}}

%
% Subsection frames
%
\def\boxsecframe{\def\sub@section@frame##1{\Fbox{3pt}{1pt}{##1}}}
\def\shadowsecframe{\def\sub@section@frame##1{\SFbox{3pt}{1pt}{2pt}{##1}}}

%
% defaults
%
% slide head and foot
\lhead{\slidetitle}
\chead{\relax}   % empty
\rhead{\sectiontitle}
\lfoot{\slideauthor}
\cfoot{\relax}   % empty
\rfoot{\thepage}

%
\defaultskip=1em
%
\pagestyle{slide}

% \portrait vs. \landspace
\portrait

% no parindent
\parindent 0pt

% \vertcenter vs. \verttop
\vertcenter   % vertical centering

% \doubleboxframe vs. \shadowframe vs. \ovalframe
\shadowframe

% \boxsecframe vs. \shadowsecframe
\shadowsecframe

% hyphenation off. Comment the following line if you want hyphenation on
\pretolerance=10000

% right-justification off
% Comment the following two lines if you want right-justification on
\@rightskip\@flushglue
\rightskip\@rightskip

%
% use pointing hand
%
%\font\handsfont=hands scaled\magstep5
%\def\handright{{\handsfont \char"41}}
%\def\handleft{{\handsfont \char"42}}
%\def\mysecpointer{\mbox{\handright}\,}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% hands fonts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%Do ftp login:
%%
%%	anonymous@ymir.claremont.edu
%%
%%Go to the directory of hands.dir:
%%
%%	cd tex
%%	cd mf
%%	cd hands
%%
%%Get all files:
%%
%%	mget *
%%
%%Modifications to hands.mf
%%^^^^^^^^^^^^^^^^^^^^^^^^^
%%   ... ...
%%   size=10pt#;
%%   ... ...
%%   thinline#:=6/100em#;
%%
%%Run metafont on hands.mf with magnification of:
%%
%%	1.2**5
%%
%%which is used in lslide.sty
%%Probably, you may want to generate hands fonts with
%%all magnifications:
%%
%%	1, root(1.2), 1.2, 1.2**2, 1.2**3, 1.2**4, 1.2**5
%%
%%%%%%%%%%%%%%%%%%%%%%%%%

\addtolength{\textheight}{-0.5in}
\verttop
\shadowframe

\begin{document}

\title{네트워크 산책}
\author{조 훈 영}
\organization{SPARCS} 
\date{1993년 7월 27일}
\titlepage

\subsection{네트워크 개념}
\begin{itemize}
\item Computer Network 란 end-system 간의 연결을 통한 통신 시스템으로
각 컴퓨터들간의 유용한 자원을 공유하기 위해 만들어진 시스템이다.
\item 여기서 end-system 은 host 라고 하는데 host 는 마이크로 컴퓨터에서
부터 거대한 수퍼 컴퓨터에 이르기까지 아주 다양하다. 
\item 어떤 호스트는 프린터 또는 화일 서버로서만 사용되기도 하며 어떤
호스트는 개인용 컴퓨터일 수도 있다. 반면에 어떤 것은 time-sharing
컴퓨터이다.
\end{itemize}
\subsection{네트워크의 종류}
\subsubsection{LAN}
\begin{itemize}
\item local area network 를 뜻한다. 한 걸물 내라든지의 거리상으로
가까운 컴퓨터들을 연결한 시스템. 
\item LAN 은 주로 ethernet 으로 연결하며 약 10Mbps 정도의 매우 빠른
속도를 갖고 있다. 
\end{itemize}
\subsubsection{WAN}
\begin{itemize}
\item 주로 거리상으로 먼, 국가들 사이 또는 도시들 간의 컴퓨터들을
연결한 것으로 때로는 long haul network 이라고도 부른다.   
\item LAN 에 비해 속도가 느리며 9.6kbps 에서 1.54Mbps 정도의 통신속도를
낼 수 있다. 여기서 bps 는 bits per second 이다. 
\item 일반적으로 leased 전화선을 사용한다. 
\end{itemize}

\subsection{인터넷이란 무엇일까?}
\begin{itemize} 
\item  Internet은 전세계의 수천개의 컴퓨터 네트워크를 상호 통신할 수 있도록
 구성한 것이다. 각각의 네트워크들은 TCP/IP protocol이라는 이름의 같은
 언어로 정보를 교환한다.
\item Internet 의 목표는 네트웍 간의 물리적 차이점을 커버하고 사용자로
하여금 단일시스템으로 느끼도록 하는데 있다. 
\item 각 네트워크 사이는 Gateway 로 연결되는 데 이것은 router 라고도
불린다.
\item Internet의 네트워크 대부분의 사용자들은 다른 네트워크의 사용자와 정보를
 주고 받을 수 있다.
\item  Internet의 기원은 연구원들 간의 정보와 자료 교환을 돕기 위하여
 ARPANET((Advanced Research Projects Agency)에 의해 개발된 네트워크에 뿌리를
 두고 있다. 1969년에 만들어진  ARPANET에서  관심 분야가 같은 그룹들 간에 
 정보를 교환할 수 있도록 remote login, file transfer, electronic mail등의
 네트워크 도구를 제공해 주었고 Internet에서는 이러한 서비스가기반이 되어
 현재는 NSFNet, NEARNet, KREONet 등을 포함하고 있다.
\item  현재 하루에 약 백만명의 사용자가 internet을 사용하는 것으로  추산된다.
\end{itemize}

\section{네트워크 관련 명령}
\subsection{telnet 에 관하여}
\begin{itemize}
\item Internet 상에서 가능한 remote login 을 언급하는 말이다
\item 다시 말해서, 어떤 host 에 telnet 한다라는 말이 의미하는 것은 한 host
에서 다른 호스트로 Internet 을 통하여 연결이 이루어짐을 의미한다.
\item 보통 원거리에 있는 host 로 Telnet 으로 login 하려면 그 host 상에
계정을 갖고 있어야 한다. 그러나 몇몇 공개 서비스를 제공하는 host 들은
개인적인 계정을 갖지 않아도 무방하다. 예를 들면 garam 의 gopher 서비스.
\begin{center}
\begin{tabular}{|c|}
\hline \\
\begin{minipage}{12cm}
\begin{verbatim}

사용예 
--------------------------------
$ telnet bee.kaist.ac.kr
Trying 143.248.1.55 ...
Connected to bee.kaist.ac.kr.
Escape character is '^]'.


SunOS UNIX (bee)

login: nymph
--------------------------------
$telnet sorak
...
login: gopher
--------------------------------
$telnet baduk
baduk: unknown host
telnet> o daiduk
...
login:
--------------------------------
telnet> ? 
Commands may be abbreviated.  Commands are:

close           close current connection
display         display operating parameters
mode            try to enter line-by-line or character-at-a-time mode
open            connect to a site
quit            exit telnet
send            transmit special characters ('send ?' for more)
set             set operating parameters ('set ?' for more)
status          print status information
toggle          toggle operating parameters ('toggle ?' for more)
z               suspend telnet
?               print help information
---------------------------------

\end{verbatim}
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
\item 그 외 온라인 매뉴얼 참조. ( man telnet 해 본다.)
\end{itemize}

\subsection{rlogin 에 관하여}
\begin{itemize}
\item remote login 의 줄임말로 네트워크 상의 remote 기계에 login 하여 그
기계의 자원들, 화일 시스템이라든지, 프린터나 여러종류의 드라이브 등등을 
사용하고자 할 때. 비슷한 명령어로 rsh 이 있으나 엄격한 의미에서는 다르다.
\item 사용방법 : \$ rlogin <hostname> 
\item 또는 : \$ rlogin <hostname> -l <loginname>
\item login 하고자 하는 remote 기계의 계정에 .rhosts 라는 화일이 있으며
그 화일 안에 현재의, 즉 rlogin 을 시도하는 기계의 호스트이름과 login 이름
이 있으면 password 를 묻지 않고 사용권한을 획득할 수 있다. 이것은 많은
해킹에 사용되어져 왔다. 이 화일 안에 "+ +" 라고 써있으면 어떤 기계의 어떤
사용자든지 이 계정에 들어갈 수 있다.  기억해 두시길..
\begin{center}
\begin{tabular}{|c|}
\hline \\
\begin{minipage}{12cm}
\begin{verbatim}
예1.
	$rlogin eve
	Password:
	Login incorrect
	login: boss
	Password:
예2.
	$rlogin eve -l boss
	Password:
예3.
	$hostname
	eve

	$whoami 
	boss

	$cat .rhosts
	baram.kaist.ac.kr       nymph
	bee.kaist.ac.kr         nymph
	baram.kaist.ac.kr       yhjin
	bee.kaist.ac.kr         yhjin
	baram.kaist.ac.kr       board
	
	$logout
	$rlogin eve -l boss
예4.
	$rsh baram -l nymph
	Last login: Mon Jul 26 14:39:07 from bee.kaist.ac.kr
	SunOS Release 4.1.3-KLE1.1.3 (BARAM_KOR)  Wed Jun 2 00:04:46 KST 1993
	You have mail.
	$

\end{verbatim}
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
\end{itemize}

\subsection{finger 에 관하여}
\begin{itemize}
\item finger 명령어는 현재 사용자들에 대한 정보를 알려 준다. 
\item 각 사용자의 로그인 이름, finger 이름, 터미널이름, 로그인한 시간,
idle 시간, 터미널의 위치 등등을 알 수 있다.
\item  사용예: \$ finger loginname@hostname
\begin{center}
\begin{tabular}{|c|}
\hline \\
\begin{minipage}{12cm}
\begin{verbatim}
예1. 
	$finger @eve  ( eve 라는 호스트의 현재 사용자들 정보를 원할 때)
	$finger boss@eve ( 그 중 특히 boss 라는 로그인명을 가진
	사람에 대해 알고자 할 때)
	$finger ( 자신과 같은 호스트의 현재 사용자들 정보를 원할 때)
	$finger nymph ( 그 중 특정인에 대해서만 알고자 할 때)
\end{verbatim}
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
\item  /usr/ucb/finger 와 /usr/local/bin/finger 가 다른 경우가 있다.
\end{itemize}

\subsection{rusers 에 관하여}
\begin{itemize}
\item finger 와 거의 같은 기능을 수행한다. 각 호스트 상의 현재 사용자 
정보를 가르쳐 준다. 
\item \$ rusers <hostname>  과 같은 형식으로 사용한다.
\item 위에서 <hostname> 을 특별히 명시하지 않을 경우 자신의 호스트의
현재 사용자 정보를 준다.
\item 비슷한 명령으로 그냥 users 라고 치면 현재 자신의 호스트의 사용자
정보를 준다. 
\item 보통 명령어의 앞에 r 이 붙으면 remote 라는 뜻으로서 네트워크 관련
명령어 임을 의미 한다. 주로 그러한 명령어의 뒤에 <host\_name> 을 붙이면
그 기계에 대한 정보를 주며 안 붙이면 default 로서 자신의 기계에 대해 
수행하는 경우가 대부분이다.
\end{itemize}

\subsection{talk 에 관하여}
\begin{itemize}
\item talk  는 네트워크 상의 두 사용자간의 통신을 위한 유틸리티
프로그램으로 두 사용자가 전화하듯 동시에 정보를 교환할 수 있다.
\item talk 프로그램을 기반으로 하여 htalk ( 한글 토크), ntalk ( 두 사람
이상이 동시에 말할 수 있는 토크), hntalk, ytalk 등등의 여러 talk 유사 
프로그램이 개발되었다. 대체로 사용법은 비슷하다.
\item 사용법: \$ talk <login\_name>@<host\_name>
\item 위와 같이 명령을 주면 사용자에게 다음과 같은 메시지가 온다.
\begin{center}
\begin{tabular}{|c|}
\hline \\
\begin{minipage}{12cm}
\begin{verbatim}
예1. 
	$ talk nymph@baram.kaist.ac.kr

	Message from Talk_Daemon@baram at 11:08 ...             
	talk: connection requested by boss@eve.kaist.ac.kr
	talk: respond with:  talk nymph@baram.kaist.ac.kr       

	$ talk boss@eve.kaist.ac.kr
	[connection established] 

\end{verbatim}
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
\item 작업중 방해 받지 않고자 할 때에는 mesg n 라는 명령어를 수행하면
된다. 이것은 write 명령어에 대해서도 마찬가지이다.
\end{itemize}

\subsection{write 에 관하여}
\begin{itemize}
\item write 도 메시지 전달 프로그램이긴하지만 talk 와는 달리 한 편에서
다른 편으로 일방적으로 메시지를 전달한다. 한 줄씩 전송이 된다.
\item 사용법 : \$ write <login\_name>@<host\_name> 
\item 사용 예 : \$ write klee@reuse.seri.re.kr
\item 위와 같이 한 후, 원하는 메시지를 전달하고 나서 Ctrl-D 를 누르고
끝낸다. 만약 상대편에서 mesg n 를 수행 중이면 메시지 전달이 불가능하다.
\item 메시지는 다음과 같이 화일로도 전달할 수 있다. 
\item 사용 법 : \$ write <login\_name>@<host\_name>  <  <file\_name>
\item 사용 예 : \$ write imp@ajussi.kaist.ac.kr < problem.c
\item 이와 유사한 명령어로 wall 이 있으며 현재 사용자 전체에게 동시에
메시지를 전달한다. 
\end{itemize}

\subsection{ping 에 관하여}
\begin{itemize}
\item ping 은 어떤 호스트에 packet 을 보내어 그 호스트가 살아있는지
또는 그 호스트의 응답시간이 얼마나 걸리는지 등의 여부를 알아내는
네트워크 명령어이다.
\item 사용법 : \$ ping [-s] host\_name
\item 사용 예 : \$ ping eve.kaist.ac.kr  혹은 \$ ping -s nic.nm.kr
\item s옵션은 매 초마다 packet 을 원하는 호스트로 보낸다.
\item 그 외에도 여러가지 옵션들이 있으며 이것은 \$ man ping 을 해보면 알
수 있다.
\end{itemize}

\subsection{그 외에 알아두면 편리한 network 명령어들} 
\begin{itemize}
\item \$ netstat -r -n  : 네트워크 상태를 알 수 있다. 
\item \$ nslookup <host\_name>: 호스트이름에 해당하는 Internet
주소를 알 수 있다. 
\item \$ dig <host\_name> : nslookup 과 비슷하나 훨씬 powerful 하다.
\item \$ traceroute <host\_name> : 어떤 호스트까지 가는 데 거치는 모든
호스트들을 나열해 준다. 이것으로서 연결상태를 알 수 있다.
\item \$ rup <host\_name> : uptime <host\_name> 이라는 명령어와 비슷한
기능을 하며 사용자 수, 시스템의 부하가 얼마나 걸려있는지 등의, 시스템의 
상태에 대한 정보를 준다.
\end{itemize}

\section{네트워크 서비스}
\subsection{BBS}
\begin{itemize}
\item Bulletin Board System 의 약자이며 일종의 게시판의 역할을 한다.
여러 네트워크 사용자들이 BBS 프로그램에 접속하여 여러가지 정보를
교환한다. 게시판에 글을 올리고 읽고 함으로써 정보롤 교환하기도 하고
실제로 이야기 하며 정보를 교환하기도 한다. 
\item 현재 우리에게 가장 가까운 BBS 로는 kids,ara,csqueen 등이 있으며
다음과 같이 접속한다. 
\item 접속법 : \$ rlogin ara -l bbs 또는 \$ rlogin csqueen -l bbs 등.
\begin{center}
\begin{tabular}{|c|}
\hline \\
\begin{minipage}{12cm}
\begin{verbatim}

      :::::                                          @@@@@@@
    ::::/::::       //| ||\ ||\    ||\ ||\ // TM    @  @@@@@@
   ::SPA\RCS::     //_| ||/ ||_\   ||< ||< \\      @@ @@ ## ##
    ::::/::::     //  | ||\ ||  \  ||/ ||/ //      @@ @@ ## ##
      :::::      -----------------------------       ######  #
			 Since 1991.12.7               #######

          *!* 아라의 세계에 오신 여러분을 환영합니다 *!*

-=[아라비비]=-에 오신 것을환영합니다
사용자 명을 입력해 주세요(새로 오신 분은 'new', 그만두시려면 'off')
사용자명(UserId) : captain
비밀번호(Passwd) : 

-=[아라비비]=- 
명령어(cmd): 
(I)nfo          비비 프로그램에 대하여...
(B)oards        [아라비비]에 있는 게시판 목록 보기
(C)ount         게시판에 올라간 글 수 알기
(S)elect        현재 게시판을 선택
(R)ead          게시판에서 글 읽기
(N)ew           새로운 글 읽기
(V)isit         글 방문하기 (읽은걸로 하기)
(P)ost          게시판에 글 올리기
(T)alk          -=[사랑방]=- (만남의 장소)
(M)ail          -=[편지함]=- (편지 주고받기)
(X)yz           -=[도구함]=- (자기 정보 변경)
(Z)ap           참여 안할 게시판 고르기
(G)oodbye       비비 안녕...
(H)elp          도움말 화면 보기

\end{verbatim}
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
\item  일단 login 을 한 후에는 주어지는 요청에 따라 해나가면 된다.
\item  위의 메뉴들에서 괄호 속의 대문자를 치면 원하는 정보를 얻을 수
있다.
\item  다른 BBS 서비스 호스트에 대한 정보는 다음에 나오는 gopher 에서
쉽게 찾을 수 있다.
\end{itemize}

\subsection{News}
\begin{itemize}
\item 세계의 여러가지 최신 정보들을 네트워크 상에서 주고 받는
프로그램으로서 자신의 호스트에 tin 이라는 프로그램이 있다면 쉽게 사용할
수 있다.
\item .newsrc .tin 등을 자신의 계정에 갖다 놓고 setenv NNTPSERVER worak
이라고 한다. 
\item 그 뒤 tin 이라는 명령어를 실행시키고 자신이 원하는 news 그룹의 소식을
읽으면 된다.
\begin{center}
\begin{tabular}{|c|}
\hline \\
\begin{minipage}{12cm}
\begin{verbatim}
 65   145  han.hangul                           한글에 대한 이야기
 66     6  han.archives                         anonymous ftp에 저장된 내용
 67   445  han.fun                              재미있는 이야기  
 68    19  han.games                            게임에 대한 이야기  
 69    23  han.mail                             이메일에 대한 정보        
 70    43  han.network				 네트워크 관련 정보        
 71    34  han.news  				한글 뉴스에 대한 이야기   
 72    60  han.news.admin
 73   334  han.test                             뉴스 테스트 용            
 74     9  sci.virtual-worlds.apps                                        
 75        alt.hayco.sucks.mud                  x                         
 76     5  sci.chaos                                                      
 77   857  comp.os.linux.announce                                         
 78        han.comp.ai                          인공지능 분야에 대한 토론 

     <n>=set current to n, TAB=next unread, /=search pattern, c)atchup,
  g)oto, j=line down, k=line up, h)elp, m)ove, q)uit, r=toggle all/unread,
  s)ubscribe, S)ub pattern, u)nsubscribe, U)nsub pattern, y)ank in/out

\end{verbatim}
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
\end{itemize}

\subsection{IRC}
\begin{itemize}
\item Internet Relay Chat 을 말하며 자신의 호스트에 irc 라는 프로그램이
있으면 irc 라고 치면 된다. 여러 나라에서 연결하여 들어와서 여러가지
이름의 채널을 만들어 자신이 관심있는 채널에 참여하여 대화를 나누는
유틸리티로서 BBS 의 Chat 와 비슷하다. 
\item irc 에 일단 들어가면 모든 명령어는 슬래쉬기호 다음에 써 준다. 
\item 제일 처음 자신의 별명을 짓고 원하는 채널에 들어가든지 아니면
채널에 참여하지 않은 상태로 메시지를 통해 이야기 할 수 있다.
\item /help 라고 치면 irc 내에서 가능한 모든 명령어 리스트가 나오며
/help <원하는 명령어> 하면 그 명령어에 대한 상세한 설명이 나온다.
\item 알면 편리한 명령어들.
\item list : 모든 채널과 각 채널의 주제의 리스트를 볼 수 있다.
\item channel <channel\_name> 자신의 채널을 만들 수 있다.
\item join <channel\_name> 원하는 채널에 참여한다.￦
\item nick <your nickname> 자신의 별명을 바꾼다.
\item msg <nickname> <메시지>  원하는 사람에게만 개인적으로 메시지를
보낼 때.
\item query <nickname> 원하는 사람과 계속하여 개별적으로 말하고자 할
때. 이 때 다시 채널 내의 다른 사람과 이야기 하려면 query 라고 친다.
\item leave <channel\_name> 현재의 채널에서 나올 때.
\item invite <nick\_name> 어떤 사람을 자신의 채널에 초대할 때. 
\item quit irc 를 빠져 나올 때￦￦
\end{itemize}

\subsection{FTP}
\begin{itemize}
\item 화일 전송 유틸리티이다.
\item 사용법 : \$ ftp <hostname> 또는 ftp <host\_address>
\item 어떤 호스트에 있는 화일을 자신의 시스템으로 가져 오고자 할 때. 
\begin{center}
\begin{tabular}{|c|}
\hline \\
\begin{minipage}{12cm}
\begin{verbatim}

$ftp eve

Connected to eve.kaist.ac.kr.
220 eve FTP server (SunOS 4.1) ready.
Name (eve:nymph): boss
331 Password required for boss.
Password:
230 User boss logged in.
ftp> ls -al
drwxr-xr-x  2 boss          512 Apr  5 17:20 arbiet
drwxr-xr-x  4 boss          512 Jul 26 17:18 board
-rw-r--r--  1 boss           22 Jun 18 10:56 info
drwxr-xr-x  2 boss          512 Apr  2 02:02 informix
drwxr-xr-x  3 boss          512 Apr  4 14:03 yhjin
drwxr-xr-x  2 boss          512 Nov 25  1992 ytalk

ftp>mget info
mget info? y
200 PORT command successful.
150 ASCII data connection for info (143.248.1.51,4176) (22 bytes).
info: Is a directory
226 ASCII Transfer complete.
225 ABOR command successful.

ftp> binary
200 Type set to I.
ftp> ?

\end{verbatim}
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
\item 기타 여러 명령어들은 ? 명령어를 실행하여 알 수 있다. 
\item 끝날 때는 quit 명령어를 사용한다.
\item 유용한 명령어로서 prompt,lcd,mget,ls,close,cd,send 등등이 있다.
\end{itemize}

\subsection{Archie}
\begin{itemize}
\item archie 는 ftp 기능을 확장한 것으로서 자신이 원하는 화일이 어디에
있는지 가능한 모든 호스트들을 다 뒤져서 그 위치를 알려주는 매우 편리한
유틸리티이다.
\item 사용법 : \$ archie -h <archie\_server> <file-to-find> 
\item 사용 예 : \$ archie -h archie.sogang.ac.kr hpscat
\item 그 외의 옵션들은 archie -h 라고 하면 된다.
\item archie 의 서버는 archie -L 을 해 보면 알 수 있다.
\item archie 의 서버는 여러개가 있으며 gopher 를 통해 알 수 있고 기본적으로는
archie.sogang.ac.kr 을 사용하면 무난하다.
\end{itemize}

\subsection{Gopher}
\begin{itemize}
\item Gopher 는  종합 정보를 서비스 해 주는 매우 유용한 유틸리티로서
자신의 기계에 gopher client 가 있으면 gopher server 로 연결하여
서비스를 받을 수 있다. 
\item 사용법 : \$ gopher <gopher server>
\item 사용예 : \$ gopher nic.nm.kr
\item 고퍼 서버에는 여러개가 있으나 nic.nm.kr 이 상당히 유용하고 그
자체에서 다른 고퍼 서버로 연결이 가능하다. 
\item 국내에는 cair.kaist.ac.kr,garam.kreonet,Dacom R\&D Center 등이
유명하고 nic.nm.kr 에서 그들로 직접 연결 가능하다.
\end{itemize}

\end{document}
