mirror of
				https://gitlab.com/sortix/sortix.git
				synced 2023-02-13 20:55:38 -05:00 
			
		
		
		
	Add hostname(1).
This commit is contained in:
		
							parent
							
								
									4ffd6f5e20
								
							
						
					
					
						commit
						dbf4bcd6cf
					
				
					 6 changed files with 164 additions and 0 deletions
				
			
		
							
								
								
									
										28
									
								
								hostname/hostname.1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								hostname/hostname.1
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,28 @@
 | 
			
		|||
.Dd March 19, 2017
 | 
			
		||||
.Dt HOSTNAME 1
 | 
			
		||||
.Os
 | 
			
		||||
.Sh NAME
 | 
			
		||||
.Nm hostname
 | 
			
		||||
.Nd write or set system hostname
 | 
			
		||||
.Sh SYNOPSIS
 | 
			
		||||
.Nm hostname
 | 
			
		||||
.Op Fl s
 | 
			
		||||
.Op Ar hostname
 | 
			
		||||
.Sh DESCRIPTION
 | 
			
		||||
.Nm
 | 
			
		||||
writes the system hostname, or sets the system hostname to
 | 
			
		||||
.Ar hostname
 | 
			
		||||
if specified.
 | 
			
		||||
.Pp
 | 
			
		||||
The options are as follows:
 | 
			
		||||
.Bl -tag -width "12345678"
 | 
			
		||||
.It Fl s , Fl \-short
 | 
			
		||||
Write the hostname up to but not including the first period.
 | 
			
		||||
.El
 | 
			
		||||
.Sh EXIT STATUS
 | 
			
		||||
.Nm
 | 
			
		||||
will exit 0 on success and non-zero otherwise.
 | 
			
		||||
.Sh SEE ALSO
 | 
			
		||||
.Xr gethostname 2 ,
 | 
			
		||||
.Xr sethostname 2 ,
 | 
			
		||||
.Xr hostname 5
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue