/usr/bin/xfs_quota: invalid option -- '-'
Usage: xfs_quota [-V] [-x] [-f] [-p prog] [-c cmd]... [-d project]... [path]
Options (8)
| Option | Description | Source |
|---|
-c cmd | xfs_quota commands may be run interactively (the default) or as arguments on the command line. | man |
-p prog | Set the program name for prompts and some error messages, the default value is xfs_quota. | man |
-x | Enable expert mode. | man |
-f | Enable foreign filesystem mode. | man |
-d project | Project names or numeric identifiers may be specified with this option, which restricts the output of the individual xfs_quota commands to the set of projects specified. | man |
-D projects_file | Specify a file containing the mapping of numeric project identifiers to directory trees. | man |
-P projid_file | Specify a file containing the mapping of numeric project identifiers to project names. | man |
-V | Prints the version number and exits. | man |
Examples (3) from the manual page, untested
mount -o uquota /dev/xvm/home /home
Enabling quota enforcement on an XFS filesystem (restrict a user to a set amount of space).mount -o prjquota /dev/xvm/var /var
Enabling project quota on an XFS filesystem (restrict files in log file directories to only using 1 gigabyte of space).rm -f /etc/projects /etc/projid
Same as above without a need for configuration files.
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.