Blog

03/06/2019

FreeBSD Show Disk Quota Limits Command



I‘m a new FreeBSD unix user and backup file on a FreeBSD based unix server. How can I check quota limits and disk usage using shell prompt on a FreeBSD based system?

[donotprint][/donotprint]You need to use the quota command line utility to see your disk usage and limits. By default only the user quotas are printed. Disk block usage and limits are shown in 1024-byte blocks.

Checking Disk Quota on FreeBSD Server

The syntax is as follows:

quota
quota -v
quota [options] username
quota [options] groupname

The following is sample output from my server:
$ quota -v
OR
$ quota -v -h
Sample outputs:

Disk quotas for user vivek (uid 40142): 
     Filesystem   usage    quota   limit   grace  files   quota  limit   grace
     /mnt/sales      0B       0B      0B               0         0       0         
     /mnt/homes   7289M   97656M 107422M             579   10000000 11000000  

Where,

  1. -v : Display quotas on file systems where no storage is allocated.
  2. -h : “Human-readable” output. Use unit suffixes: Byte, Kilobyte,Megabyte, Gigabyte, Terabyte and Petabyte.

You can use the following command over ssh based session:

ssh vivek@nas01 quota -hv
ssh vivek@server1.sxi.io quota -hv

I strongly suggest that you read quota man page for more information.

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....
12/08/2019

How to Start and Enable Firewalld on CentOS 7

In this article, we discuss how to start and enable firewalld. It is highly recommended that you have a firewall protecting your server.Pre-Flight CheckThese...