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

📄 0259-0260.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="0257-0258.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0261-0263.html">Next</A></CENTER></P>







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







<P><B>

DESCRIPTION

</B></P>



<P>The hostid command prints the current host ID number in hexadecimal and both decimal and hexadecimal in parenthesis

if the _v option is given. This numeric value is expected to be unique across all hosts and is normally set to resemble the

host's Internet address.

</P>



<P>Only the superuser can set the hostid by giving an argument. This value is stored in the file

/etc/hostid and need only be performed once.

</P>



<P><B>

AUTHOR

</B></P>



<P>hostid is written by Mitch D'Souza

(m.dsouza@mrc-apu.cam.ac.uk).

</P>



<P><B>

SEE ALSO

</B></P>



<P>gethostid(2), sethostid(2)

</P>





<P><B>

HOSTNAME

</B></P>



<P>hostname&#151;Show or set the system's hostname

</P>



<P>dnsdomainname--Show the system's domain name

</P>



<P><B>

SYNOPSIS

</B></P>



<!-- CODE SNIP //-->

<PRE>

hostname [_d][--domain][_Ffilename] [--filefilename] [_f][--fqdn][_h][--help]

[--long][_s][--short][_v][--version][name]

dnsdomainname

</PRE>

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



<P><B>

DESCRIPTION

</B></P>



<P>hostname is the program that is used to either set the hostname or display the current host or domain name of the

system. This name is used by many of the networking programs to identify the machine.

</P>



<P>When called without any arguments, the program displays the current name as set by the

hostname command. You can change the output format to display always the short or the long hostname (FQDN). When called with arguments,

the program will set the value of the hostname to the value specified. This usually is done only once, at system startup time,

by the /etc/rc.d/rc.inet1 configuration script.

</P>



<P>Note that only the superuser can change the hostname.

</P>



<P>If the program was called as dnsdomainname, it will show the domain name server (DNS) domain name. You can't change

the DNS domain name with dnsdomainname. (See the following subsection.)

</P>



<P><B>

OPTIONS

</B></P>



<TABLE>



<TR><TD>

_d, --domain

</TD><TD>

Display the name of the DNS domain. Don't use the com-mand

domainname to get the DNS domain name because it will show the NIS domain name and not the DNS domain name.

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

_F, --file filename

</TD><TD>

Read the hostname from the specified file. Comments (lines starting with a

#) are ignored.

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

_f, --fqdn, --long

</TD><TD>

Display the FQDN (fully-qualified domain name). An FQDN consists of a short hostname

and the DNS domain name. Unless you are using bind or NIS for host lookups, you can change

the FQDN and the DNS domain name (which is part of the FQDN) in the

/etc/hosts file.

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

_h, --help

</TD><TD>

Print a usage message on standard output and exit successfully.

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

_s, --short

</TD><TD>

Display the short hostname.

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

_v, --version

</TD><TD>

Print version information on standard output and exit successfully.

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



<P><B>

FILES

</B></P>



<!-- CODE SNIP //-->

<PRE>

/etc/hosts

</PRE>

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



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





<P><B>

AUTHOR

</B></P>



<P>Peter Tobias,

(tobias@server.et-inf.fho-emden.de)

</P>



<P>

Linux, 28 July 1994

</P>



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

hpcdtoppm v0.3

</A></H3>



<P>hpcdtoppm v0.3&#151;Convert a Photo-CD file into a portable pixmap

</P>



<P><B>

SYNOPSIS

</B></P>



<!-- CODE SNIP //-->

<PRE>

hpcdtoppm [OPTIONS] pcd-file [ppm-file]

</PRE>

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



<P><B>

DESCRIPTION

</B></P>



<P>hpcdtoppm reads a Photo-CD image file or overview file, and outputs a portable pixmap. Image FILES you can find on

the Photo-CD in photo_cd/images are named as

imgnnnn.pcd, where nnnn is a 4-digit-number. The Overview file is at

photo_cd/overview.pcd. If there is no ppm-file given, output will be printed to

stdout. hpcdtoppm stands for &quot;Hadmut's

pcdtoppm&quot; to make it distinguishable in case someone else is building the same thing and calling it

pcdtoppm.

</P>



<P><B>

OPTIONS

</B></P>



<TABLE>



<TR><TD>

-i

</TD><TD>

Give some information from the fileheader to

stderr. It works only for image FILES. (It is not working correctly, just printing some strings.)

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

-s

</TD><TD>

Apply simple sharpness-operator on the luma channel.

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

-d

</TD><TD>

Do not show the complete image, but only the decompressed difference. It works only

on the 4Base and the 16Base resolution. It does not have any deeper sense, but it was simple

to implement and it shows what causes different sizes of image FILES.

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

-r

</TD><TD>

Rotate the picture clockwise for portraits.

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

-l

</TD><TD>

Rotate the picture counter-clockwise for portraits.

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

-a

</TD><TD>

Try to find out the image orientation. This doesn't work for overview FILES yet. It is

very experimental and depends on one byte. Please tell me if it doesn't work.

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

-x

</TD><TD>

Overskip mode. Works on Base/16, Base/4, Base, and 4Base. In Photo-CD images,

the luma channel is stored in full resolution, the two chroma channels are stored in

half resolution only and have to be interpolated. In the Overskip mode, the chroma channels

of the next higher resolution are taken instead of interpolating. To see the difference,

generate one ppm with and one ppm without this flag. Use

pnmarith to generate the difference image of these two images. Call

ppmhist for this difference or show it with xv (push the

HistEq button in the color editor).

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

-1 | -Base/16 | -128x192

</TD><TD>

Extract the Base/16 size picture (size

128&#165;192 pixels). Note that you can only give one

size option.

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

-2 | -Base/4 | -256x384

</TD><TD>

Extract the Base/4 size picture.

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

-3 | -Base | -512x768

</TD><TD>

Extract the Base size picture.

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

-4 | -4Base | -1024x1536

</TD><TD>

Extract the 4Base size picture.

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

-5 | -16Base | -2048x3072

</TD><TD>

Extract the 16Base size picture.

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

-0 | -Overview | -O

</TD><TD>

 Extract all pictures from an Overview file. A

ppm filename must be given. If the given name is

foo, the FILES are named foonnnn, where nnnn is a 4-digit number. They are stored in<BR>

Base/16 format, so they are extracted in this format.

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

-ycc

</TD><TD>

Suppress the ycc to rgb conversion. This is experimental only. You can use this and

apply ppmtorgb3 on the file. Then you will get three

pgm FILES, one luma and two chroma FILES.

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







<P><CENTER>

<a href="0257-0258.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0261-0263.html">Next</A></CENTER></P>







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

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

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