Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Set or display name of current host system - hostname
Posted By:
Dylan Bouchard
Category:
Unix / Linux / Ubuntu
Views:
3912
This article explains about hostname command with an example in unix.
hostname command is used to set or display name of current host system in unix.
Syntax of hostname Command
hostname [- options]
Example of hostname Command
hostname
Share:
Previous Post:
Display information about computer system - uname
Next Post:
Print user and group IDs and names - id
Didn't find what you were looking for? Find more on
Set or display name of current host system - hostname
Or get
search suggestion and latest updates
.
Dylan Bouchard
author of Set or display name of current host system - hostname is from Montreal,
Canada
.
View All Articles
Related Articles and Code:
Program to get and set System Date using Interrupt 21h
Shell script to display all users names, or users names of a particular group, or name of users who are currently working in the system
Shell script that prints names of all sub-directories present in the current directory
Shell script that prints names of all sub-directories present in the current directory
Write a menu driven program to display message, user name, terminal name, login date and time
Program to display progress bar as displayed in windows system
Program to display different type of progress bar as displayed in windows system
Program to display current date and time
Display information about all the current programs running
Display your current working directory
Display 2 items having lowest current stock
Program to get and display the current system time.
TCP/IP program of TELNET protocol to the given host and port
TCP/IP program to connect to a specified TCP service on a specified host
TCP/IP program to connect to a specified UDP service on a specified host
Prolog program to display item name, code, quantity, price and grade
Display information about computer system - uname
Display student records whose name starts with 'm' using like % operator
Display the already mounted file system - mount
Display customers whose name starts with 's'
Other Interesting Articles in Unix / Linux / Ubuntu:
Shell Script to display the exit status using grep command which search a string from a string
Copy file and directory subtrees - cp
Compress and expand data - compress / uncompress
Collect system diagnostic message to from error log - dmesg
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Sort file abc.txt and save this sorted file in xyz.txt
Change login password and associated attributes - passwd
Prepare the marksheet of the student
Write a shell program to find the gcd for the 2 given numbers
Display information about computer system - uname
Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments
Find out how many users are currently working.
Absolute movement in unix
Shell script which receives two file names as arguments and checks whether the two file contents are same or not. If same then delete second file
Write a shell script to ask your name, program name and enrolement number and print it on the screen
Write a shell program to exchange the values of two variables
Is it possible to create and remover more than one directory together?
Write a shell program to search for a given number from the list of numbers provided using binary search method
Shell Script to check file is ordinary or not
Program to calculate the gross salary
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint