Managing Disk Space Effectively with Jailed SSH Access in DirectAdmin Print

  • 0


In the web hosting landscape, effectively managing disk space is crucial. Users with jailed SSH access on a DirectAdmin environment can meticulously handle large files and directories to ensure seamless operation. Here, we delineate a step-by-step guide tailored for end users to help them identify and manage high-disk-usage areas in their web hosting environment.

Preparation: Securing SSH Access

Before leveraging the power of SSH commands, it’s imperative to have SSH access activated for your account. Reach out to Domain India Support to enable jailed SSH access, which grants you secure, confined access to your account’s environment.

Step-by-Step Guide

Step 1: SSH into Your Web Hosting Account

  • Use your favored SSH client to SSH into your web hosting account.
  • Log in with your user credentials.

Step 2: Reaching the Home Directory

  • Once logged in, navigate to your home directory using the command:

cd ~

Step 3: Disk Usage Overview with the ‘du’ Command

  • For a clear snapshot of the disk usage per directory, employ the du command as:

du -h --max-depth=1

Step 4: Pinpointing Large Directories

  • Identify directories with significant disk usage.
  • Delve deeper into these directories and run the du command to find the exact folders or files consuming high disk space.

Step 5: Uncovering Large Files

  • To single out files larger than a specified size, for instance, 50M, utilize the ‘find’ command as follows:

find . -type f -size +50M -exec ls -lh {} \;

  • This command explained:
    • -type f: Find entities classified as files, excluding directories.
    • -size +50M: Filter and find files exceeding 50 megabytes.
    • -exec ls -lh {} \;: For every file identified, execute ls -lh to list their details in a format easy to read and understand.

Step 6: Responsible Cleanup

  • After pinpointing the large files and directories, it’s time to clean them up responsibly, avoiding the removal of essential files.

Step 7: Client Communication

  • If you find that the high disk usage emanates from your files, consider taking necessary cleanup actions guided by appropriate advice and resources.


By following this guide, users with jailed SSH access in a DirectAdmin environment can effectively manage disk space, ensuring the smooth running of their web hosting account. For complex issues or further guidance, leverage the detailed resources at Domain India Knowledgebase or for personalized help, submit a ticket.


Was this answer helpful?

« Back