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: Mon May 28 21:42:15 2012 from 38.107.179.228
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Gethostid 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 gethostid en anglaisMan  en français Man gethostid en français
Man  en anglais Man gethostent en anglaisMan  en français Man gethostent en français
Man  en anglais Man gethostbyname_r en anglaisMan  en français Man gethostbyname_r en français
Man  en anglais Man getgroups en anglaisMan  en français Man getgroups en français
Man  en anglais Man getgrouplist en anglaisMan  en français Man getgrouplist en français
Man  en anglais Man getgrent_r en anglaisMan  en français Man getgrent_r en français
Man  en anglais Man getent en anglaisMan  en français Man getent en français
Man  en anglais Man getegid en anglaisMan  en français Man getegid en français
Man  en anglais Man getdents en anglaisMan  en français Man getdents en français
Man  en anglais Man getdelim en anglaisMan  en français Man getdelim en français
Man  en anglais Man getcpu en anglaisMan  en français Man getcpu en français
Man  en anglais Man getcontext en anglaisMan  en français Man getcontext en français
Man  en anglais Man getchar en anglaisMan  en français Man getchar en français
Man  en anglais Man getc_unlocked en anglaisMan  en français Man getc_unlocked en français
Man  en anglais Man get_thread_area en anglaisMan  en français Man get_thread_area 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