CNETOS7 hostname command Learn to use

Source: Internet
Author: User

1.hostnamectl Introduction.

Hostnamectl is used to modify the host name of the system.

2. Command list.

650) this.width=650; "title=" clip_image002 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M00/6F/E6/ Wkiol1ws7biz1kvhaagmfp_sike593.jpg "width=" "height=" 442 "/>

With Hostnamectl--help command

3. Command usage record.

Hostnamectl–help

Lists the help information for the HOSTNAMECTL command.

Hostnamectl–version

650) this.width=650; "title=" clip_image004 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image004 "src=" http://s3.51cto.com/wyfs02/M01/6F/E9/ Wkiom1ws69ahe1lmaabi3hx7hlu703.jpg "width=" "height="/>

Get version information for SYSTEMD.

Hostnamectl–static

Get the static host name

650) this.width=650; "title=" clip_image006 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image006 "src=" http://s3.51cto.com/wyfs02/M02/6F/E9/ Wkiom1ws69edalzfaaa_rbwbnmu989.jpg "width=" 604 "height="/>

Hostnamectl–transient

Get temporary host name

650) this.width=650; "title=" clip_image008 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image008 "src=" http://s3.51cto.com/wyfs02/M01/6F/E6/ Wkiol1ws7bmxe4y3aabbw7eeh6o215.jpg "width=" 604 "height=" "/>"

Hostnamectl–pretty

Get flexible host names

650) this.width=650; "title=" clip_image010 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image010 "src=" http://s3.51cto.com/wyfs02/M00/6F/E9/ Wkiom1ws69jbfvc0aaba4rx59fu290.jpg "width=" 604 "height="/>

Hostnamectl–privileged

This command does not look that understand, execution will also error

650) this.width=650; "title=" clip_image012 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image012 "src=" http://s3.51cto.com/wyfs02/M01/6F/E9/ Wkiom1ws69js5tkmaabg4evgg70200.jpg "width=" 604 "height=" "/>"

Hostnamectl–host

Set the remote host name

650) this.width=650; "title=" clip_image014 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image014 "src=" http://s3.51cto.com/wyfs02/M02/6F/E6/ Wkiol1ws7bqj08zsaads0ahx5nc960.jpg "width=" 604 "height=" 185 "/>

Hostnamectl status

Get the current hostname information

650) this.width=650; "title=" clip_image016 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image016 "src=" http://s3.51cto.com/wyfs02/M02/6F/E9/ Wkiom1ws69mrus6aaaefcicvk5u522.jpg "width=" 604 "height=" 231 "/>

Hostnamectl–[static/transient/pretty]

Get static/temporary/flexible host names

650) this.width=650; "title=" clip_image018 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image018 "src=" http://s3.51cto.com/wyfs02/M00/6F/E6/ Wkiol1ws7burfdt3aaczswn6njc759.jpg "width=" 604 "height=" 147 "/>

Hostnamectl Set-hostname PPPPP

Set host name

650) this.width=650; "title=" clip_image020 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image020 "src=" http://s3.51cto.com/wyfs02/M01/6F/E6/ Wkiol1ws7byqe8dcaabddu85scc757.jpg "width=" 604 "height="/>

650) this.width=650; "title=" clip_image022 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image022 "src=" http://s3.51cto.com/wyfs02/M00/6F/E6/ Wkiol1ws7bzzhqceaad0a80wxru991.jpg "width=" 604 "height=" 223 "/>

650) this.width=650; "title=" clip_image024 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image024 "src=" http://s3.51cto.com/wyfs02/M02/6F/E9/ Wkiom1ws69vr0bsaaacci2u_buo263.jpg "width=" 604 "height=" 224 "/>

Hsotnamectl–static Set-hostname Ppppp1

Set a static host name

650) this.width=650; "title=" clip_image026 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image026 "src=" http://s3.51cto.com/wyfs02/M01/6F/E6/ Wkiol1ws7b3qugkgaabga4_nobc403.jpg "width=" 604 "height="/>

650) this.width=650; "title=" clip_image028 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image028 "src=" http://s3.51cto.com/wyfs02/M00/6F/E6/ Wkiol1ws7b6cr4hyaaecdik-65o572.jpg "width=" 604 "height=" 257 "/>

Hsotnamectl–transient Set-hostname PPPPP2

Set a static host name

650) this.width=650; "title=" clip_image030 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image030 "src=" http://s3.51cto.com/wyfs02/M02/6F/E6/ Wkiol1ws7b6xgcqjaacxepanayg575.jpg "width=" 604 "height=" 109 "/>

650) this.width=650; "title=" clip_image032 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image032 "src=" http://s3.51cto.com/wyfs02/M02/6F/E9/ Wkiom1ws696hodmzaaejdq9nguk365.jpg "width=" 604 "height=" 258 "/>

Hsotnamectl–pretty Set-hostname PPPPP3

Set a static host name

650) this.width=650; "title=" clip_image034 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image034 "src=" http://s3.51cto.com/wyfs02/M00/6F/E6/ Wkiol1ws7cdgndkgaablmvrjmi0760.jpg "width=" 604 "height="/>

650) this.width=650; "title=" clip_image036 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image036 "src=" http://s3.51cto.com/wyfs02/M02/6F/E9/ Wkiom1ws69-hh8zkaaetlpjbwjk283.jpg "width=" 604 "height=" 251 "/>

CNETOS7 hostname command Learn to use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.