old-www/LDP/intro-linux/html/sect_04_05.html

530 lines
6.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Summary</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Introduction to Linux"
HREF="index.html"><LINK
REL="UP"
TITLE="Processes"
HREF="chap_04.html"><LINK
REL="PREVIOUS"
TITLE="Scheduling processes"
HREF="sect_04_04.html"><LINK
REL="NEXT"
TITLE="Exercises"
HREF="sect_04_06.html"></HEAD
><BODY
CLASS="sect1"
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"
>Introduction to Linux: </TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="sect_04_04.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 4. Processes</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="sect_04_06.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="sect_04_05"
></A
>4.5. Summary</H1
><P
>Linux is a multi-user, multi-tasking operating system that has a UNIX-like way of handling processes. Execution speed of commands can depend on a thousand tiny things. Among others, we learned a lot of new commands to visualize and handle processes. Here's a list:</P
><DIV
CLASS="table"
><A
NAME="AEN5938"
></A
><P
><B
>Table 4-3. New commands in chapter 4: Processes</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><THEAD
><TR
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Command</TH
><TH
ALIGN="LEFT"
VALIGN="MIDDLE"
>Meaning</TH
></TR
></THEAD
><TBODY
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>at</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Queue jobs for later execution.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>atq</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Lists the user's pending jobs.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>atrm</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Deletes jobs, determined by their job number.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>batch</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Executes commands when system load level permits.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>crontab</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Maintain crontab files for individual users.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>halt</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Stop the system.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>init <TT
CLASS="parameter"
><I
>run level</I
></TT
></B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Process control initialization.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>jobs</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Lists currently executing jobs.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>kill</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Terminate a process.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>mesg</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Control write access to your terminal.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>netstat</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Display network connections, routing tables, interface statistics, masquerade connections and multicast memberships.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>nice</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Run a program with modified scheduling priority.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>pgrep</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Display processes.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>ps</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Report process status.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>pstree</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Display a tree of processes.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>reboot</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Stop the system.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>renice</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Alter priority of running processes.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>shutdown</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Bring the system down.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>sleep</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Delay for a specified time.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>time</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Time a command or report resource usage.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>top</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Display top CPU processes.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>uptime</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Show how long the system has been running.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>vmstat</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Report virtual memory statistics.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>w</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Show who is logged on and what they are doing.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>wall</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Send a message to everybody's terminals.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>who</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Show who is logged on.</TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
><B
CLASS="command"
>write</B
></TD
><TD
ALIGN="LEFT"
VALIGN="MIDDLE"
>Send a message to another user.</TD
></TR
></TBODY
></TABLE
></DIV
></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="sect_04_04.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="sect_04_06.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Scheduling processes</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="chap_04.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Exercises</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>