📄 unix.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>8. Unix Specific Services</title>
<META NAME="description" CONTENT="8. Unix Specific Services">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" href="module-pdb.html" tppabs="http://www.python.org/doc/current/lib/module-pdb.html">
<LINK REL="previous" href="someos.html" tppabs="http://www.python.org/doc/current/lib/someos.html">
<LINK REL="up" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">
<LINK REL="next" href="module-posix.html" tppabs="http://www.python.org/doc/current/lib/module-posix.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="completer-objects.html" tppabs="http://www.python.org/doc/current/lib/completer-objects.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-posix.html" tppabs="http://www.python.org/doc/current/lib/module-posix.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="completer-objects.html" tppabs="http://www.python.org/doc/current/lib/completer-objects.html">7.18.1 Completer Objects</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-posix.html" tppabs="http://www.python.org/doc/current/lib/module-posix.html">8.1 posix </A>
<br><hr></DIV>
<!--End of Navigation Panel-->
<H1>
<BR>
8. Unix Specific Services
</H1>
<P>
The modules described in this chapter provide interfaces to features
that are unique to the Unix operating system, or in some cases to
some or many variants of it. Here's an overview:
<P>
<table class='synopsistable'>
<tr><td><b><tt class='module'><a href="module-posix.html" tppabs="http://www.python.org/doc/current/lib/module-posix.html">posix</a></tt></b></td>
<td class='synopsis'>The most common POSIX<#20640#><#20640#> system calls (normally used
via module <tt class='module'><a href="module-os.html" tppabs="http://www.python.org/doc/current/lib/module-os.html">os</a></tt>).</td></tr>
<tr><td><b><tt class='module'><a href="module-pwd.html" tppabs="http://www.python.org/doc/current/lib/module-pwd.html">pwd</a></tt></b></td>
<td class='synopsis'>The password database (<tt class="function">getpwnam()</tt> and friends).</td></tr>
<tr><td><b><tt class='module'><a href="module-grp.html" tppabs="http://www.python.org/doc/current/lib/module-grp.html">grp</a></tt></b></td>
<td class='synopsis'>The group database (<tt class="function">getgrnam()</tt> and friends).</td></tr>
<tr><td><b><tt class='module'><a href="module-crypt.html" tppabs="http://www.python.org/doc/current/lib/module-crypt.html">crypt</a></tt></b></td>
<td class='synopsis'>The <tt class="cfunction">crypt()</tt> function used to check
Unix<#20919#><#20919#> passwords.</td></tr>
<tr><td><b><tt class='module'><a href="module-dl.html" tppabs="http://www.python.org/doc/current/lib/module-dl.html">dl</a></tt></b></td>
<td class='synopsis'>Call C functions in shared objects.</td></tr>
<tr><td><b><tt class='module'><a href="module-dbm.html" tppabs="http://www.python.org/doc/current/lib/module-dbm.html">dbm</a></tt></b></td>
<td class='synopsis'>The standard ``database'' interface, based on ndbm.</td></tr>
<tr><td><b><tt class='module'><a href="module-gdbm.html" tppabs="http://www.python.org/doc/current/lib/module-gdbm.html">gdbm</a></tt></b></td>
<td class='synopsis'>GNU's reinterpretation of dbm.</td></tr>
<tr><td><b><tt class='module'><a href="module-termios.html" tppabs="http://www.python.org/doc/current/lib/module-termios.html">termios</a></tt></b></td>
<td class='synopsis'>POSIX<#21281#><#21281#> style tty control.</td></tr>
<tr><td><b><tt class='module'><a href="module-TERMIOSuppercase.html" tppabs="http://www.python.org/doc/current/lib/module-TERMIOSuppercase.html">TERMIOS</a></tt></b></td>
<td class='synopsis'>Symbolic constants required to use the
<tt class="module">termios</tt> module.</td></tr>
<tr><td><b><tt class='module'><a href="module-tty.html" tppabs="http://www.python.org/doc/current/lib/module-tty.html">tty</a></tt></b></td>
<td class='synopsis'>Utility functions that perform common terminal control
operations.</td></tr>
<tr><td><b><tt class='module'><a href="module-pty.html" tppabs="http://www.python.org/doc/current/lib/module-pty.html">pty</a></tt></b></td>
<td class='synopsis'>Pseudo-Terminal Handling for SGI and Linux.</td></tr>
<tr><td><b><tt class='module'><a href="module-fcntl.html" tppabs="http://www.python.org/doc/current/lib/module-fcntl.html">fcntl</a></tt></b></td>
<td class='synopsis'>The <tt class="function">fcntl()</tt> and <tt class="function">ioctl()</tt> system calls.</td></tr>
<tr><td><b><tt class='module'><a href="module-pipes.html" tppabs="http://www.python.org/doc/current/lib/module-pipes.html">pipes</a></tt></b></td>
<td class='synopsis'>A Python interface to Unix<#21682#><#21682#> shell pipelines.</td></tr>
<tr><td><b><tt class='module'><a href="module-posixfile.html" tppabs="http://www.python.org/doc/current/lib/module-posixfile.html">posixfile</a></tt></b></td>
<td class='synopsis'>A file-like object with support for locking.</td></tr>
<tr><td><b><tt class='module'><a href="module-resource.html" tppabs="http://www.python.org/doc/current/lib/module-resource.html">resource</a></tt></b></td>
<td class='synopsis'>An interface to provide resource usage information on
the current process.</td></tr>
<tr><td><b><tt class='module'><a href="module-nis.html" tppabs="http://www.python.org/doc/current/lib/module-nis.html">nis</a></tt></b></td>
<td class='synopsis'>Interface to Sun's NIS (a.k.a. Yellow Pages) library.</td></tr>
<tr><td><b><tt class='module'><a href="module-syslog.html" tppabs="http://www.python.org/doc/current/lib/module-syslog.html">syslog</a></tt></b></td>
<td class='synopsis'>An interface to the Unix<#22346#><#22346#> syslog library routines.</td></tr>
<tr><td><b><tt class='module'><a href="module-commands.html" tppabs="http://www.python.org/doc/current/lib/module-commands.html">commands</a></tt></b></td>
<td class='synopsis'>Utility functions for running external commands.</td></tr>
</table>
<BR>
<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="completer-objects.html" tppabs="http://www.python.org/doc/current/lib/completer-objects.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-posix.html" tppabs="http://www.python.org/doc/current/lib/module-posix.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="completer-objects.html" tppabs="http://www.python.org/doc/current/lib/completer-objects.html">7.18.1 Completer Objects</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-posix.html" tppabs="http://www.python.org/doc/current/lib/module-posix.html">8.1 posix </A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -