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: Sun Feb 12 8:25:02 2012 from 38.107.179.230
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Quotactl en anglais

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


quotactl - manipulate disk quota
 
SYNOPSIS


#include #include int quotactl(int cmd, const char *special, int id, caddr_t addr);
 
DESCRIPTION


The quota system defines for each user and/or group a soft limit and a hard limit bounding the amount of disk space that can be used on a given file system. The hard limit cannot be crossed. The soft limit can be crossed, but warnings will ensue. Moreover, the user cannot be above the soft limit for more than one week (by default) at a time: after this week the soft limit counts as hard limit. The quotactl() system call manipulates these quota. Its first argument is of the form QCMD(subcmd,type) where type is either USRQUOTA or GRPQUOTA (for user quota and group quota, respectively), and subcmd is described below. The second argument special is the block special device these quota apply to. It must be mounted. The third argument id is the user or group ID these quota apply to (when relevant). The fourth argument addr is the address of a data structure, depending on the command. The subcmd is one of Q_QUOTAON Enable quota. The addr argument is the pathname of the file containing the quota for the file system. Q_QUOTAOFF Disable quota. Q_GETQUOTA Get limits and current usage of disk space. The addr argu- ment is a pointer to a dqblk structure (defined in ). Q_SETQUOTA Set limits and current usage; addr is as before. Q_SETQLIM Set limits; addr is as before. Q_SETUSE Set usage. Q_SYNC Sync disk copy of a file system's quota. Q_GETSTATS Get collected stats.
 
RETURN VALUE


On success, quotactl() returns 0. On error, -1 is returned, and errno is set appropriately.
 
ERRORS


EACCES The quota file is not an ordinary file. EBUSY Q_QUOTAON was asked, but quotas were enabled already. EFAULT Bad addr value. EINVAL type is not a known quota type. Or, special could not be found. EIO Cannot read or write the quota file. EMFILE Too many open files: cannot open quota file. ENODEV special cannot be found in the mount table. ENOPKG The kernel was compiled without quota support. ENOTBLK special is not a block special device. EPERM The process was not root (for the file system), and Q_GETQUOTA was asked for another id than that of the process itself, or anything other than Q_GETSTATS or Q_SYNC was asked. ESRCH Q_GETQUOTA or Q_SETQUOTA or Q_SETUSE or Q_SETQLIM was asked for a file system that didn't have quota enabled.
 
CONFORMING TO


BSD.
 
SEE ALSO


quota(1), getrlimit(2), setrlimit(2), ulimit(3), quotacheck(8), quo- taon(8)
 
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-06-01 QUOTACTL(2)


 Dernières recherches
Man  en anglais Man quotactl en anglaisMan  en français Man quotactl en français
Man  en anglais Man unsetenv en anglaisMan  en français Man unsetenv en français
Man  en anglais Man getgrnam en anglaisMan  en français Man getgrnam en français
Man  en anglais Man aio_read en anglaisMan  en français Man aio_read en français
Man  en anglais Man wmempcpy en anglaisMan  en français Man wmempcpy en français
Man  en anglais Man wordfree en anglaisMan  en français Man wordfree en français
Man  en anglais Man setegid en anglaisMan  en français Man setegid en français
Man  en anglais Man sendmsg en anglaisMan  en français Man sendmsg en français
Man  en anglais Man manpath en anglaisMan  en français Man manpath en français
Man  en anglais Man ptsname en anglaisMan  en français Man ptsname en français
Man  en anglais Man geteuid en anglaisMan  en français Man geteuid en français
Man  en anglais Man apropos en anglaisMan  en français Man apropos en français
Man  en anglais Man fstatat en anglaisMan  en français Man fstatat en français
Man  en anglais Man crontab en anglaisMan  en français Man crontab en français
Man  en anglais Man inittab en anglaisMan  en français Man inittab 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