Sunday, April 27, 2014

hostname

  •   hostname

Print or set system name


SYNTAX
      
$ hostname

With no arguments, `hostname' prints the name of the current host system. With one argument, it sets the current host name to the specified string. You must have appropriate privileges to set the host name.




Related Posts:

  • top   top command examples top command displays the top processes in the system ( by default sorted by cpu usage ). To sort top output by any column, Press O (upper-case O) , which will display all the possible columns… Read More
  • tar   tar command examples   Create a new tar archive. $ tar cvf archive_name.tar dirname/ Extract from an existing tar archive. $ tar xvf archive_name.tar View an existing tar archive. $ tar t… Read More
  • su su command examples Switch to a different user account using su command. Super user can switch to any other user without entering their password. $ su - USERNAME Execute a single command from a different ac… Read More
  • service service command example   Service command is used to run the system V init scripts. i.e Instead of calling the scripts located in the /etc/init.d/ directory with their full path, you can use the service command. … Read More
  • tail   tail command example Print the last 10 lines of a file by default. $ tail filename.txt Print N number of lines from the file named filename.txt $ tail -n N filename.txt View the content of the file in real… Read More

0 comments:

Post a Comment