Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 46 lignes de commande disponibles
login as: root
root@213.186.33.18's password:
Last login: Tue Feb 9 4:05:08 2010 from 38.107.191.116
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Fork en anglais

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


fork - create a child process
 
SYNOPSIS


#include #include pid_t fork(void);
 
DESCRIPTION


fork() creates a child process that differs from the parent process only in its PID and PPID, and in the fact that resource utilizations are set to 0. File locks and pending signals are not inherited. Under Linux, fork() is implemented using copy-on-write pages, so the only penalty that it incurs is the time and memory required to dupli- cate the parent's page tables, and to create a unique task structure for the child.
 
RETURN VALUE


On success, the PID of the child process is returned in the parent's thread of execution, and a 0 is returned in the child's thread of exe- cution. On failure, a -1 will be returned in the parent's context, no child process will be created, and errno will be set appropriately.
 
ERRORS


EAGAIN fork() cannot allocate sufficient memory to copy the parent's page tables and allocate a task structure for the child. EAGAIN It was not possible to create a new process because the caller's RLIMIT_NPROC resource limit was encountered. To exceed this limit, the process must have either the CAP_SYS_ADMIN or the CAP_SYS_RESOURCE capability. ENOMEM fork() failed to allocate the necessary kernel structures because memory is tight.
 
CONFORMING TO


SVr4, 4.3BSD, POSIX.1-2001.
 
EXAMPLE


See pipe(2) and wait(2).
 
SEE ALSO


clone(2), execve(2), setrlimit(2), unshare(2), vfork(2), wait(2), capa- bilities(7) Linux 2.6.6 2004-05-27 FORK(2)


 Dernières recherches
Man  en anglais Man fork en anglaisMan  en français Man fork en français
Man  en anglais Man sched_setscheduler en anglaisMan  en français Man sched_setscheduler en français
Man  en anglais Man fmtmsg en anglaisMan  en français Man fmtmsg en français
Man  en anglais Man feature_test_macros en anglaisMan  en français Man feature_test_macros en français
Man  en anglais Man stat en anglaisMan  en français Man stat en français
Man  en anglais Man mkfifo en anglaisMan  en français Man mkfifo en français
Man  en anglais Man clock_gettime en anglaisMan  en français Man clock_gettime en français
Man  en anglais Man strftime en anglaisMan  en français Man strftime en français
Man  en anglais Man inet_addr en anglaisMan  en français Man inet_addr en français
Man  en anglais Man posixoptions en anglaisMan  en français Man posixoptions en français
Man  en anglais Man strlen en anglaisMan  en français Man strlen en français
Man  en anglais Man cut en anglaisMan  en français Man cut en français
Man  en anglais Man date en anglaisMan  en français Man date en français
Man  en anglais Man select en anglaisMan  en français Man select en français
Man  en anglais Man tar en anglaisMan  en français Man tar 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