• English
  • Japanese

How to confirm the storage data capacity of home directory on Linux

When you obtain an accont, a home directory with your login name will be provided.

Note that a home directory for Linux environment and Windows environment are another thing.

Quotas

5GByte

How to check the quotas

As shown below, you can check amount of used disk space using chkquota command. The following output example shows that 2.8 GBytes is already used.

% chkquota
please wait...
...
ua000000 is used 2.8G Byte in home directory.
Now usage is 54.5% (2858446 KB/5242880 KB).

How to search for and delete large unnecessary files.

Follow these steps to find files with a large usage size.

  1. Please login to linux environment on Workstation Room or login with ssh to loginserver or remote connection hosts.
  2. Check usage in your homedirectory using chkquota command.
    % chkquota
    please wait...
    ...
    ua000000 is used 4.8G Byte in home directory.
    Now usage is 94.5% (4955598 KB/5242880 KB).
    
  3. Change current directory to top of your homedirectory.
    $ cd
    
  4. The top 10 are listed in order of greatest usage. The following example shows that document uses about 1.5 GB and proj_dir1 uses about 600 MB.
    • Example:
      • In this example, it assume that there is no unnecessary data under document and that proj_dir1 is already unnecessary
    % du -sbk * .??* | sort -nr | head
    1515275 document
    614401  proj_dir1
    243558  .config
    209437  .cache
    86061   public_html
    76357   .thunderbird
    41564   eclipse-workspace
    26952   .mozilla
    25217   .klayout
    24457   .gimp-2.8
    
  5. Change current directories to the proj_dir1 and again search for files with large usage size.
    • If don't exist hidden files of prefix a dot that is have output messages "du: cannot access '.??*': No such file or directory". You can ignore this massage.
    $ cd proj_dir1/
    $ du -sbk * .??* | sort -nr | head
    du: cannot access '.??*': No such file or directory
    614401  media
    
  6. Change current directories to media and again search for files with large usage size.
    $ cd media
    $ du -sbk * .??* | sort -nr | head
    du: cannot access '.??*': No such file or directory
    307200  DummyFiles300.zip
    204800  DummyFiles200.zip
    102400  DummyFiles100.zip
    
  7. Please check the need for files in the proj_dir1/media/. If decide that it is unnecessary you delete this files.
    $ rm -i DummyFiles300.zip
    $ rm -i DummyFiles200.zip
    $ rm -i DummyFiles100.zip
    
  8. After you deleted unnecessary files and check usage in your homedirectory using chkquota command.
    $ chkquota
    please wait...
    ...
    ua000000 is used 2.8G Byte in home directory.
    Now usage is 54.5% (2858446 KB/5242880 KB).
    

about backup

Please take a backup of important data in your home directory using media such as a USB memory or a USB Storage by yourself.

Last-Modified: May 7, 2025

The content ends at this position.