🐧
Linux
  • syllabus
  • unit 1-Introduction
    • Unit I: Introduction to Linux
    • 2. Advantages of Linux over other operating systems
    • 3.File systems
    • 4.Culture of free software
  • unit 2-Basics of Linux
    • 1.Commands
    • 2.shell
    • 3.Text Editors
    • 4.The file system of Linux
    • 5.Directories and their special purpose
    • 6.permission
  • unit 3-Installation
    • 1. Partitioning
    • 2. Installation of Linux
    • 3. Troubleshooting of installation
  • unit 4-System Administration
    • 1.Root login
    • 2.Superuser
    • 3.Configuration of hardware with kudzu
    • 4. Checking System Space:
    • 5. Monitoring System Performance:
    • 6. Working with a File System:
    • 7.Configuring modules
    • 8.jail shell
    • 9.awk
    • 10.sed
  • unit 5-User Management
    • 1.Creating user accounts
    • 2.Setting user defaults
    • 3.Providing support to users
    • 4.Modifying accounts
    • 5.Deleting user accounts
    • 6.Checking disk quotas
    • 7.Sending mail to all users
  • unit 6-Security and System Handling
    • 1.Understanding shell scripts
    • 2.System startup and shutdown
    • 3.Scheduling system tasks
    • 4.Backing up and restoring
    • 5.Password protection
    • 6.File security
  • unit 7-Setting up a Web Server
    • 1.Introduction to a web server
    • 2.Starting the Apache webserver
    • 3.Configuring the Apache webserver
    • 4.Monitoring server activities
  • unit 8-Setting up DHCP and NIS
    • 1.Introduction to DHCP
    • 2.Setting up DHCP Server
    • 3.Setting up DHCP Client
    • 4.Understand NIS
  • unit 9-Setting up a Database Server
    • 1.Configuring database server
    • 2.Checking the status
    • 3.Working with database
  • unit 10-Setting up DNS
    • 1.Introduction to DNS
    • 2.Setting up DNS and configuration
    • 3.Querying DNS
  • unit 11-ISP Simulation
    • 1.Integration of servers
    • 2.DNS, Web, Email, etc
  • fullform
  • Assignment
  • Practicals
    • 1.Linux utilities
    • 2.OS installation project work
    • 3.User management using a terminal
    • 4.Security level access control list
    • 1.Network setting
    • 2.Server configuration of DHCP, DNS, Database server
    • 3.Demonstration of the web, mail, file server
  • imp questions
    • short-notes
    • unit 1
    • unit 2
    • unit 3
    • unit 4
    • unit 5
    • unit 6
    • unit 7
    • unit 8
    • unit 9
    • unit 10
    • unit 11
    • unit ii
  • services
    • create_service
  • Viva+Practical
    • VIVA questions
    • Practical questions
Powered by GitBook
On this page

Was this helpful?

  1. unit 5-User Management

6.Checking disk quotas

Checking disk quotas in a Linux system involves verifying how much disk space a user or group is using and ensuring that they do not exceed their allocated disk quota limits. Linux provides several commands and utilities to check and manage disk quotas.

1. Enable Disk Quotas (if not already enabled):

  • Before you can check disk quotas, ensure that disk quotas are enabled on your Linux system. You typically need to enable quotas in your filesystem and configure them in the /etc/fstab file.

2. Install and Update Quota Database:

  • Ensure that the quota database is up to date by running the following command as root:

    sudo quotacheck -avug
  • This command checks all filesystems with quotas enabled and updates the quota database.

3. Display User Quotas:

  • To check the disk quotas for a specific user, use the quota command followed by the username:

    quota username
  • Replace username with the name of the user you want to check. This command will display the disk usage and quota limits for that user.

4. Display Group Quotas:

  • To check the disk quotas for a specific group, use the quota command with the -g option followed by the group name:

    quota -g groupname
  • Replace groupname with the name of the group you want to check. This command will display the disk usage and quota limits for that group.

5. List All User Quotas:

  • To list the quotas for all users on the system, you can use the repquota command:

    sudo repquota -a
  • This command will display the disk usage and quota limits for all users and groups on the system.

6. Generate a Quota Report:

  • You can generate a quota report for a specific user or group by using the -r option with the repquota command:

    sudo repquota -rg username

    Replace username with the name of the user or group you want to generate a report for. This command provides a more detailed report of the user's or group's disk usage and limits.

7. Check Quotas on Specific Directory:

  • To check quotas on a specific directory, navigate to that directory and use the quota command with the -s option:

    quota -s .
  • This command checks and displays quotas for the current directory (denoted by .). You can replace . with the path to the directory you want to check.

8. Set Disk Quotas (if needed):

  • If you need to set or modify disk quotas for users or groups, you can use the edquota command or edit the /etc/quotas file. Consult your distribution's documentation for instructions on quota management.

Previous5.Deleting user accountsNext7.Sending mail to all users

Last updated 1 year ago

Was this helpful?