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

📄 450-456.html

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

<HEAD>

<TITLE>Linux in Plain English:Linux Commands Organized by Group</TITLE>

<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=1558285423//-->

<!--TITLE=Linux in Plain English//-->

<!--AUTHOR=Patrick Volkerding//-->

<!--AUTHOR=Kevin Reichard//-->

<!--PUBLISHER=IDG Books Worldwide, Inc.//-->

<!--IMPRINT=M & T Books//-->

<!--CHAPTER=5//-->

<!--PAGES=450-456//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="444-449.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="457-461.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><FONT SIZE="+1"><B>strip......<TT>Strip from Object File</TT></B></FONT></P>

<IMG SRC="images/05-148i.jpg"><P><B>strip</B> <I>filename</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>strip</B> command strips symbols from object files. The list of object files may include archives, but at least one object file must be given. <SMALL><B>WARNING</B></SMALL>: The GNU version modifies the files named in its argument, rather than writing modified copies under different names, so be careful in your naming schemes.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="30%" VALIGN="TOP"><B>-F <I>bfdname</I></B>

<TD WIDTH="70%">Treats the original <I>objfile</I> as a file with the object-code format <I>bfdname</I>, and rewrites it in the same format.

<TR>

<TD><B>-g</B>

<TD>Removes debugging symbols only.

<TR>

<TD VALIGN="TOP"><B>-I <I>bfdname</I></B>

<TD>Treats the original <I>objfile</I> as a file with the object-code format <I>bfdname</I>.

<TR>

<TD><B>-K <I>symbolname</I></B>

<TD>Copies <I>symbolname</I> from the source file.

<TR>

<TD><B>-N <I>symbolname</I></B>

<TD>Strips <I>symbolname</I> from the source file.

<TR>

<TD VALIGN="TOP"><B>-O <I>bfdname</I></B>

<TD>Replaces <I>objfile</I> with a file in the output format <I>bfdname</I>.

<TR>

<TD VALIGN="TOP"><B>-R <I>sectionname</I></B>

<TD>Removes <I>sectionname</I> from the file. Be careful&#151;incorrectly removing a section may make the object file unusable.

<TR>

<TD><B>-s</B>

<TD>Removes all symbols.

<TR>

<TD><B>-S</B>

<TD>Removes debugging symbols only.

<TR>

<TD VALIGN="TOP"><B>--strip-unneeded</B>

<TD>Strips all symbols that are not needed for relocation processing.

<TR>

<TD VALIGN="TOP"><B>-v</B>

<TD>Works in verbose mode, listing all the object files modified.

<TR>

<TD><B>-x</B>

<TD>Removes nonglobal symbols.

<TR>

<TD VALIGN="TOP"><B>-X</B>

<TD>Removes compiler-generated local symbols (usually beginning with <I>L</I> or <I>.</I>).

</TABLE>

<P><FONT SIZE="+1"><B>xgettext......<TT>Get Text from C Programs</TT></B></FONT></P>

<P><B>xgettext</B> <I>option(s) filename</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>xgettext</B> command extracts strings (text) from C programs. It&#146;s used to create portable message files, which contain copies of C strings from the source code in a specified <I>filename</I>. The portable message file can be used as input to the <B>msgfmt</B> utility, which will produce a binary form of the message file used at application run-time.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="25%"><B>-a</B>

<TD WIDTH="75%">Extract ALL strings, not just those found in

<TR>

<TD VALIGN="TOP"><B>-c<I>flag</I></B>

<TD>Adds comments beginning with <I>flag</I> are added to <I>filename</I> as # delimited comments.

<TR>

<TD VALIGN="TOP"><B>-d</B>

<TD>Produce duplicates, not sorting output when writing the file and not overwriting existing output files.

<TR>

<TD VALIGN="TOP"><B>-m<I>string</I></B>

<TD>Fills in the <I>msgstr</I> line with output from the <B>xgettext</B> command.

<TR>

<TD VALIGN="TOP"><B>-n</B>

<TD>Adds # delimited line-number comments to the output file, indicating the line number in the source file where each extracted string is encountered.

<TR>

<TD><B>-o<I>filename</I></B>

<TD>Uses <I>filename</I> as the default output file.

<TR>

<TD><B>-p<I>pathname</I></B>

<TD>Sets the directory for the output files.

<TR>

<TD VALIGN="TOP"><B>-x<I>filename</I></B>

<TD>Excludes the strings found in <I>filename</I> from the extraction process.

<TR>

<TD><B>-P</B>

<TD>Includes the strings in preprocessor statements.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>msgfmt</B>

</DL>

<P><FONT SIZE="+1"><B>xmkmf......<TT>Create Makefile</TT></B></FONT></P>

<IMG SRC="images/05-149i.jpg"><P><B>xmkmf</B> <I>option(s) topdirectory currentdirectory</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>xmkmf</B> command creates a <B>Makefile</B> from an <B>Imakefile</B>. If your Linux system is not configured to process an <B>Imakefile</B>, you&#146;ll want to use a <B>Makefile</B> instead.</P>

<P><FONT SIZE="+1"><B><I>RELATED COMMAND</I></B></FONT></P>

<DL>

<DD><B>imake</B>

</DL>

<P><FONT SIZE="+1"><B>xxgdb......<TT>X GDB Debugger</TT></B></FONT></P>

<IMG SRC="images/05-150i.jpg"><P><B>xxgdb</B> <I>option(s)</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>xxgdb</B> command is an X Window System front end to the <B>gdb</B> debugger. See the <B>gdb</B> command for further information.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<P>This command accepts all the <B>gdb</B> options, as well as the following.</P>

<TABLE WIDTH="100%"><TR>

<TD WIDTH="30%"><B>-bigicon</B>

<TD WIDTH="70%">Uses a larger icon.

<TR>

<TD><B>-db_name</B>

<TD>Specifies a debugger to use instead of <B>gdb</B>.

<TR>

<TD><B>-db_prompt</B>

<TD>Sets a new debugger prompt.

<TR>

<TD><B>-i <I>filename</I></B>

<TD>Sets the initial <B>gdb</B> command file.

<TR>

<TD><B>-nx</B>

<TD>Does not execute <B>gdb</B> command file.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMAND</I></B></FONT></P>

<DL>

<DD><B>gdb</B>

</DL>

<P><FONT SIZE="+1"><B>yacc......<TT>YACC Parser Generator</TT></B></FONT></P>

<P><B>yacc</B> <I>option(s) filename</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>yacc</B> command reads the grammar specification in the file <I>filename</I> and generates an LR parser for it. The parsers consist of a set of LALR parsing tables and a driver routine written in C. Parse tables and the driver routine are usually written to the file <B>y.tab.c</B>.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%" VALIGN="TOP"><B>-b <I>prefix</I></B>

<TD WIDTH="80%">Changes the prefix prepended to output filenames to <I>prefix</I>. The default is <I>y</I>.

<TR>

<TD><B>-d</B>

<TD>Write the header file <B>y.tab.h</B>.

<TR>

<TD><B>-l</B>

<TD>Doesn&#146;t insert code into existing files.

<TR>

<TD VALIGN="TOP"><B>-r</B>

<TD>Produce separate files for code (<B>y.code.c</B>) and tables (<B>y.tab.c</B>).

<TR>

<TD VALIGN="TOP"><B>-t</B>

<TD>Changes the preprocessor directives to include debugging information.

<TR>

<TD VALIGN="TOP"><B>-v</B>

<TD>Writes a human-readable description of the generated parser to <B>y.output</B>.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>bison</B>

</DL>

<P><B>NETWORKING COMMANDS</B></P>

<P>These are commands that will connect you to a remote machine (either on your own network or on the Internet), and&#151;once connected&#151;help you through a session.

</P>

<P><FONT SIZE="+1"><B>dnshostname......<TT>Show Domain Name</TT></B></FONT></P>

<P><B>dnshostname</B> <I>option hostname</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>dnshostname</B> command returns information about the current hostname, while a privileged user can use the command to set a new hostname.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%"><B>-f</B>

<TD WIDTH="80%">Prints the full domain name.

<TR>

<TD><B>-s</B>

<TD>Prints the short domain name.

<TR>

<TD><B>-F <I>file</I></B>

<TD>Checks <I>file</I> for the hostname.

</TABLE>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="444-449.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="457-461.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





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

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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