old-www/LDP/GNU-Linux-Tools-Summary/html/the-unix-tools-philosophy.html

187 lines
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>The Unix Tools Philosophy</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="GNU/Linux Command-Line Tools Summary"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="License"
HREF="license.html"><LINK
REL="NEXT"
TITLE="Shell Tips"
HREF="shell-tips.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GNU/Linux Command-Line Tools Summary</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="license.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="shell-tips.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="THE-UNIX-TOOLS-PHILOSOPHY"
></A
>Chapter 3. The Unix Tools Philosophy</H1
><P
>A tool is a simple program, usually designed for a specific purpose, it is sometimes referred to (at least throughout this document) as a command.</P
><P
>The &#8220; Unix tools philosophy&#8221; emerged during the creation of the <SPAN
CLASS="PRODUCTNAME"
>UNIX</SPAN
> operating system, after the breakthrough invention of the pipe '|' (refer to <A
HREF="directing-input-ouput.html"
>Chapter 6</A
> for information on using the pipe).</P
><P
>The pipe allowed the output of one program to be sent to the input of another. The tools philosophy was to have small programs to accomplish a particular task instead of trying to develop large monolithic programs to do a large number of tasks. To accomplish more complex tasks, tools would simply be connected together, using pipes.</P
><P
>All the core UNIX system tools were designed so that they could operate together. The original text-based editors (and even <SPAN
CLASS="APPLICATION"
>TeX</SPAN
> and LaTeX) use <SPAN
CLASS="ACRONYM"
>ASCII</SPAN
> (the American text encoding standard; an open standard) and you can use tools such as; <EM
>sed</EM
>, <EM
>awk</EM
>, <EM
>vi</EM
>, <EM
>grep</EM
>, <EM
>cat</EM
>, <EM
>more</EM
>, <EM
>tr</EM
> and various other text-based tools in conjunction with these editors. </P
><P
>Using this philosophy programmers avoided writing a program (within their larger program) that had already been written by someone else (this could be considered a form of code recycling). For example, command-line spell checkers are used by a number of different applications instead of having each application create its own own spell checker.</P
><P
>This philosophy lives on today in GNU/Linux and various other <SPAN
CLASS="PRODUCTNAME"
>UNIX</SPAN
> system-based operating systems (FreeBSD, NetBSD, OpenBSD, etc.).</P
><P
>For further information (articles) on the <SPAN
CLASS="PRODUCTNAME"
>UNIX</SPAN
> tools philosophy please see the further reading section, here: <A
HREF="further-reading.html#UNIX-TOOLS-FURTHER-READING"
>Section A.2.2.1</A
></P
><P
></P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="license.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="shell-tips.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>License</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Shell Tips</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>