⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0111-0113.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>



<HEAD>

<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=01 //-->

<!-- PAGES=0001-0736 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="0109-0110.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0114-0115.html">Next</A></CENTER></P>







<A NAME="PAGENUM-111"><P>Page 111</P></A>







<!-- CODE //-->

<PRE>

depfile=/lib/modules/'uname -r'/modules.dep

path[boot]=/lib/modules/boot



path[fs]=/lib/modules/'uname -r'/fs

path[misc]=/lib/modules/'uname -r'/misc

path[net]=/lib/modules/'uname -r'/net

path[scsi]=/lib/modules/'uname -r'/scsi



path[fs]=/lib/modules/default/fs

path[misc]=/lib/modules/default/misc

path[net]=/lib/modules/default/net

path[scsi]=/lib/modules/default/scsi



path[fs]=/lib/modules/fs

path[misc]=/lib/modules/misc

path[net]=/lib/modules/net

path[scsi]=/lib/modules/scsi

</PRE>

<!-- END CODE //-->



<P>All option lines specify the default options that are needed for a module, as in</P>



<!-- CODE SNIP //-->

<PRE>

modprobe de620 bnc=1

</PRE>

<!-- END CODE SNIP //-->



<P>These options will be overridden by any options given on the

modprobe command line.</P>



<P>The alias lines can be used to give alias names to modules. A line in

/etc/conf.modules that looks like this:</P>





<!-- CODE SNIP //-->

<PRE>

alias iso9660 isofs

</PRE>

<!-- END CODE SNIP //-->



<P>makes it possible to write modprobe iso9660, although there is no such module available.</P>





<P><B>

STRATEGY

</B></P>



<P>The idea is that modprobe will look first at the directory containing modules compiled for the current release of the kernel.

If the module is not found there, modprobe will look in the directory containing modules for a default release.

</P>



<P>When you install a new Linux, the modules should be moved to a directory related to the release (and version) of the

kernel you are installing. Then you should do a symlink from this directory to the default directory.

</P>



<P>Each time you compile a new kernel, the command

make modules_install will create a new directory, but won't change

the default.

</P>



<P>When you get a module unrelated to the kernel distribution, you should place it in one of the

version-independent directories under /lib/modules.

</P>



<P>This is the default strategy, which can be overridden in

/etc/conf.modules.

</P>



<P><B>

EXAMPLES

</B></P>



<TABLE>



<TR><TD>

modprobe -t net

</TD><TD>

Load one of the modules that are stored in the directory tagged

net. Each module is tried until one succeeds. (Default:

/lib/modules/net).

</TD></TR><TR><TD>

modprobe -a -t boot

</TD><TD>

All modules that are stored in the directory tagged boot will be loaded. (Default:

/lib/modules/boot).

</TD></TR><TR><TD>

modprobe slip.o

</TD><TD>

This will attempt to load the module

slhc.o if it was not previously loaded, since the slip

module needs the functionality in the slhc module. This dependency will be described in the

file modules.dep that was created automatically by

depmod.

</TD></TR><TR><TD>

modprobe -r slip.o

</TD><TD>

Will unload slip.o. It will also unload

slhc.o automatically, unless it is used by some other

module as well (such as ppp.o).

</TD></TR></TABLE>



<P><B>

FILES

</B></P>



<!-- CODE SNIP //-->

<PRE>

/etc/conf.modules

/lib/modules/*/modules.dep

/lib/modules/*

</PRE>

<!-- END CODE SNIP //-->



<A NAME="PAGENUM-112"><P>Page 112</P></A>





<P><B>

SEE ALSO

</B></P>



<P>lsmod(1), kerneld(8), ksyms(1), modules(2)</P>



<P><B>

REQUIRED UTILITIES

</B></P>



<P>insmod(1), nm(1) rmmod(1)</P>



<P><B>

NOTES

</B></P>



<P>The pattern supplied to modprobe will often be escaped to ensure that it is evaluated in the proper context.</P>



<P><B>

AUTHOR

</B></P>



<P>Jacques Gelinas (jack@solucorp.qc.ca), Bjorn Ekwall (bj0rn@blox.se)</P>



<P><B>

BUGS

</B></P>



<P>Naah&#133;</P>



<P>

                                  Linux, 14 May 1995

</P>



<H3><A NAME="ch01_ 53">

df

</A></H3>



<P>df&#151;Summarize free disk space</P>



<P><B>

SYNOPSIS

</B></P>



<!-- CODE //-->

<PRE>

df [_aikPv] [_t fstype] [_x fstype] [&#151;all] [&#151;inodes] [&#151;type=fstype]

[&#151;exclude_type=fstype] [&#151;kilobytes] [&#151;portability] [&#151;print_type]

[&#151;help] [&#151;version] [filename...]

</PRE>

<!-- END CODE //-->



<P><B>

DESCRIPTION

</B></P>



<P>This manual page documents the GNU version of

df. df displays the amount of disk space available on the

filesystem containing each filename argument. If no filename is given, the space available on all currently mounted filesystems is

shown. Disk space is shown in 1K blocks by default, unless the environment variable

POSIXLY_CORRECT is set, in which case 512-byte blocks are used.

</P>



<P>If an argument is the absolute filename of a disk device node containing a mounted filesystem,

df shows the space available on that filesystem rather than on the filesystem containing the device node (which is always the root filesystem). This

version of df cannot show the space available on unmounted filesystems, because on most kinds of systems doing so requires

very nonportable, intimate knowledge of filesystem structures.

</P>



<P><B>

OPTIONS

</B></P>



<TABLE>



<TR><TD>

_a, &#151;all

</TD><TD>

Include in the listing filesystems that have 0 blocks, which are omitted by default.

Such filesystems are typically special-purpose pseudo-filesystems, such as automounter entries.

On some systems, filesystems of type ignore or

auto are also omitted by default and included in

the listing by this option.

</TD></TR><TR><TD>

-i, &#151;inodes

</TD><TD>

List inode usage information instead of block usage. An

inode (short for &quot;index node&quot;) is a special kind of disk block that contains information about a file, such as its owner,

permissions, timestamps, and location on the disk.

</TD></TR><TR><TD>

_k, &#151;kilobytes

</TD><TD>

Print sizes in 1K blocks instead of 512-byte blocks. This overrides the environment

variable POSIXLY_CORRECT.

</TD></TR><TR><TD>

_P, &#151;portability

</TD><TD>

Use the POSIX output format. This is like the default format except that the information

about each filesystem is always printed on exactly one line; a mount device is never put on a line

by itself. This means that if the mount device name is more than 20 characters long (as for

some network mounts), the columns are misaligned.

</TD></TR></TABLE>



<A NAME="PAGENUM-113"><P>Page 113</P></A>





<TABLE>



<TR><TD>

_T, &#151;print_type

</TD><TD>

Print a type string for each filesystem. Any such printed filesystem type name may be used as

an argument to either of the &#151;type= or

&#151;exclude_type= options.

</TD></TR><TR><TD>

_t, &#151;type=fstype

</TD><TD>

Limit the listing to filesystems of type

fstype. Multiple filesystem types can be shown by

giving multiple _t options. By default, all filesystem types are listed.

</TD></TR><TR><TD>

_x, &#151;exclude_type=fstype

</TD><TD>

Limit the listing to filesystems not of type fstype. Multiple filesystem types can be eliminated

by giving multiple _x options. By default, all filesystem types are listed.

</TD></TR><TR><TD>

_v

</TD><TD>

Ignored; for compatibility with System V versions of df.

</TD></TR><TR><TD>

&#151;help

</TD><TD>

Print a usage message on standard output and exit successfully.

</TD></TR><TR><TD>

&#151;version

</TD><TD>

Print version information on standard output then exit successfully.

</TD></TR></TABLE>



<P>

                                                   GNU File Utilities

</P>



<H3><A NAME="ch01_ 54">

dig

</A></H3>



<P>dig&#151;Send domain name query packets to name servers</P>



<P><B>

SYNOPSIS

</B></P>





<!-- CODE SNIP //-->

<PRE>

dig [@server] domain [&lt;query-type&gt;][&lt;query-class&gt;][+&lt;query-option&gt;][_&lt;dig-option&gt;]

[%comment]

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B></P>



<P>dig (domain information groper) is a flexible command-line tool that can be used to gather information from the

Domain Name System servers. dig has two modes: simple interactive mode that makes a single query, and batch that executes a

query for each in a list of several query lines. All query options are accessible from the command line.

</P>



<P>The usual simple use of dig takes the form:</P>



<!-- CODE SNIP //-->

<PRE>

dig @server domain query-type query-class

</PRE>

<!-- END CODE SNIP //-->



<P>where</P>



<TABLE>



<TR><TD>

server

</TD><TD>

May be either a domain name or a dot-notation Internet address. If this optional field is

omitted, dig will attempt to use the default name server for your machine.

</TABLE>



<CENTER>

<TABLE BGCOLOR="#FFFF99">

<TR><TD><B>

NOTE

</B></TD></TR>

<TR><TD>

<BLOCKQUOTE>

If a domain name is specified, this will be resolved using the domain name system resolver

(BIND). If your system does not support DNS, you may have to specify a dot-notation address. Alternatively, if there is a server at your disposal

somewhere, all that is required is that

/etc/resolv.conf be present and indicate where the default name servers reside, so

that server itself can be resolved. See resolver(5) for information

on /etc/resolv.conf.

</BLOCKQUOTE></TD></TR>

</TABLE></CENTER>





<CENTER>

<TABLE BGCOLOR="#FFFF99">

<TR><TD><B>

WARNING

</B></TD></TR>

<TR><TD>

<BLOCKQUOTE>

Changing /etc/resolv.conf will affect the standard resolver library and potentially several programs that use it.) As

an option, the user may set the environment variable

LOCALRES to name a file which is to be used instead of

/etc/resolv.conf (LOCALRES is specific to the dig resolver and not referenced by the standard resolver). If the

LOCALRES variable is not set or the file is not readable, then

/etc/resolv.conf will be used.

</BLOCKQUOTE></TD></TR>

</TABLE></CENTER>

<TABLE>

<TR><TD>

domain

</TD><TD>

The domain name for which you are requesting information. See &quot;Options&quot;

[-x] for a convenient way to specify inverse address query.

</TD></TR></TABLE>







<P><CENTER>

<a href="0109-0110.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0114-0115.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -