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 Mar 16 5:29: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 wait en anglaisMan  en français Man wait en français
Man  en anglais Man fork en anglaisMan  en français Man fork en français
Man  en anglais Man flock en anglaisMan  en français Man flock en français
Man  en anglais Man fseek en anglaisMan  en français Man fseek en français
Man  en anglais Man execlp en anglaisMan  en français Man execlp en français
Man  en anglais Man capset en anglaisMan  en français Man capset en français
Man  en anglais Man sigqueue en anglaisMan  en français Man sigqueue en français
Man  en anglais Man atof en anglaisMan  en français Man atof en français
Man  en anglais Man closelog en anglaisMan  en français Man closelog en français
Man  en anglais Man sigaction en anglaisMan  en français Man sigaction en français
Man  en anglais Man tar en anglaisMan  en français Man tar en français
Man  en anglais Man ungetc en anglaisMan  en français Man ungetc en français
Man  en anglais Man sqrt en anglaisMan  en français Man sqrt en français
Man  en anglais Man msgop en anglaisMan  en français Man msgop en français
Man  en anglais Man sem_open en anglaisMan  en français Man sem_open 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