Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Wed May 30 7:45:53 2012 from 38.107.179.229
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Sethostid en anglais

GETHOSTID(2) Linux Programmer's Manual GETHOSTID(2)
 
NAME


gethostid, sethostid - get or set the unique identifier of the current host
 
SYNOPSIS


#include long gethostid(void); int sethostid(long hostid); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): sethostid(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
 
DESCRIPTION


Get or set a unique 32-bit identifier for the current machine. The 32-bit identifier is intended to be unique among all Unix systems in existence. This normally resembles the Internet address for the local machine, as returned by gethostbyname(3), and thus usually never needs to be set. The sethostid() call is restricted to the superuser. The hostid argument is stored in the file /etc/hostid.
 
RETURN VALUE


gethostid() returns the 32-bit identifier for the current host as set by sethostid().
 
FILES


/etc/hostid
 
CONFORMING TO


4.2BSD; these functions were dropped in 4.4BSD. SVr4 includes geth- ostid() but not sethostid(). POSIX.1-2001 specifies gethostid() but not sethostid().
 
NOTES


In the glibc implementation, if gethostid() cannot open /etc/hostid, then it obtains the hostname using gethostname(2), passes that hostname to gethostbyname_r(3) in order to obtain the host's IPv4 address, and returns a value obtained by bit-twiddling the IPv4 address. (This value may not be unique.)
 
SEE ALSO


hostid(1), gethostbyname(3)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2007-07-26 GETHOSTID(2)


 Dernières recherches
Man  en anglais Man sethostid en anglaisMan  en français Man sethostid en français
Man  en anglais Man setgroups en anglaisMan  en français Man setgroups en français
Man  en anglais Man setcontext en anglaisMan  en français Man setcontext en français
Man  en anglais Man setbuffer en anglaisMan  en français Man setbuffer en français
Man  en anglais Man setbuf en anglaisMan  en français Man setbuf en français
Man  en anglais Man set en anglaisMan  en français Man set en français
Man  en anglais Man sess_id en anglaisMan  en français Man sess_id en français
Man  en anglais Man services en anglaisMan  en français Man services en français
Man  en anglais Man seq en anglaisMan  en français Man seq en français
Man  en anglais Man sendto en anglaisMan  en français Man sendto en français
Man  en anglais Man semtimedop en anglaisMan  en français Man semtimedop en français
Man  en anglais Man sem_unlink en anglaisMan  en français Man sem_unlink en français
Man  en anglais Man sem_getvalue en anglaisMan  en français Man sem_getvalue en français
Man  en anglais Man sem_close en anglaisMan  en français Man sem_close en français
Man  en anglais Man getcwd en anglaisMan  en français Man getcwd en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher