<div dir="ltr"><div>Dear Prof. Gavin,</div><div><br></div><div>      After invoking all the commands you have listed I have come to know that <b>.cache </b>folder contains 12 GB of space. .cache folder contains the followings;</div><div><br></div><div>event-sound-cache.tdb.bb916188e665483abe367841b820014a.x86_64-pc-linux-gnu  gstreamer-1.0      pip          ubuntu-report<br>evolution                                                                   ibus               thumbnails   update-manager-core<br>fontconfig                                                                  ibus-table         thunderbird  yelp<br>gnome-desktop-thumbnailer                                                   mesa_shader_cache  tracker3</div><div><br></div><div>Is anything removable from this folder to recover the space?</div><div><br></div><div>with regards,  <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 29 Apr 2024 at 00:58, Gavin Abo <<a href="mailto:gabo13279@gmail.com">gabo13279@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <p>The operating system /var log files I typically would not
      remove.  Before attempting to remove any of them, I would ask the
      operating system experts if it would be safe to do so.  For Ubuntu
      for example, I think those experts would be over in the Ubuntu
      forums at [1].</p>
    <p>The 15 GB is quite large such that I wouldn't expect the
      operating system with default logging to instantly cause that but
      get larger more gradually over time.</p>
    <p>The du command [2] you might find helpful.  Below is an example.</p>
    <p>First, I looked at the directories in the root folder for seeing
      which ones were using the most drive space:<br>
    </p>
    <p>username@computername:~$ sudo du --exclude=/proc --exclude=/run
      -csh /*<br>
      0    /bin<br>
      197M    /boot<br>
      4.0K    /cdrom<br>
      0    /dev<br>
      14M    /etc<br>
      2.6G    /home<br>
      0    /lib<br>
      0    /lib32<br>
      0    /lib64<br>
      0    /libx32<br>
      16K    /lost+found<br>
      44K    /media<br>
      4.0K    /mnt<br>
      4.0K    /opt<br>
      56K    /root<br>
      0    /sbin<br>
      3.7G    /snap<br>
      4.0K    /srv<br>
      2.1G    /swapfile<br>
      0    /sys<br>
      164K    /tmp<br>
      6.6G    /usr<br>
      3.2G    /var<br>
      19G    total<br>
    </p>
    <p>In my case, I'm storing my WIEN2k calculations under
      /home/username/wiendata and have my SCRATCH set to the case
      folders (with ./) that I put in that directory:<br>
    </p>
    username@computername:~$ grep wiendata ~/.bashrc<br>
    alias cdw="cd /home/username/wiendata"<br>
    export W2WEB_CASE_BASEDIR=/home/username/wiendata<br>
    username@computername:~$ grep SCRATCH ~/.bashrc<br>
    export SCRATCH=./<br>
    <p>I can check the space of just the /home directory with:<br>
    </p>
    <p>username@computername:~$ du -csh /home<br>
      2.6G    /home<br>
      2.6G    total<br>
    </p>
    <p>I see 2.6 GB of space is being used.</p>
    <p>I check what I have under my home directory:<br>
    </p>
    <p>username@computername:~$ ls /home<br>
      username<br>
    </p>
    <p>There I see I only have one user account, which is named
      username.</p>
    <p>I check how much space is being used by username:<br>
    </p>
    <p>username@computername:~$ du -csh /home/username<br>
      2.6G    /home/username<br>
      2.6G    total</p>
    <p>Next, I check under /home/username to see what the 2.6 GB
      consists of:<br>
    </p>
    <p>username@computername:~$ cd /home/username/<br>
      username@computername:~$ du -csh * .[^.]*<br>
      4.0K    Desktop<br>
      4.0K    Documents<br>
      4.0K    Downloads<br>
      4.0K    Music<br>
      4.0K    Pictures<br>
      4.0K    Public<br>
      124M    snap<br>
      4.0K    Templates<br>
      4.0K    Videos<br>
      1.5G    WIEN2k<br>
      180M    wiendata<br>
      4.0K    .bash_history<br>
      4.0K    .bash_logout<br>
      4.0K    .bashrc<br>
      130M    .cache<br>
      176K    .config<br>
      12K    .gnupg<br>
      697M    .local<br>
      4.0K    .profile<br>
      4.0K    .ssh<br>
      0    .sudo_as_admin_successful<br>
      4.0K    .wget-hsts<br>
      2.6G    total<br>
    </p>
    <p>I see my WIEN2k installation is using 1.5 GB of the 2.6 GB used. 
      My wiendata is currently only using 180 MB.</p>
    <p>Looking in my wiendata folder, I currently only have one case
      calculation named Al:<br>
    </p>
    <p>username@computername:~$ ls /home/username/wiendata/<br>
      Al</p>
    <p>I find it is taking the entire 180 MB:<br>
    </p>
    <p>username@computername:~$ du -csh /home/username/wiendata/*<br>
      180M    /home/username/wiendata/Al<br>
      180M    total<br>
    </p>
    <p>To display how much is used under the /home directory in MB, I
      use:<br>
    </p>
    <p>username@computername:~$ du -csh --block-size=M /home<br>
      2624M    /home<br>
      2624M    total<br>
    </p>
    <p>I want to move the Al directory from the computer to my USB
      connected external storage drive similar to what you described. 
      First though, since my storage drive has a Windows NTFS partition,
      I have to rename the :log file to avoid a transfer error and I
      chose to name it log.txt:<br>
    </p>
    <p>username@computername:~$ mv /home/username/wiendata/Al/:log
      /home/username/wiendata/Al/log.txt<br>
    </p>
    <p>Creating an archive (.tar) or compressed file (.zip) of the Al
      directory would have been an alternate solution that would not
      have required renaming of the :log file.</p>
    <p>I transferred the entire directory to my USB connected flash
      drive (mounted at /media/username/1A50-FE2F/Al) using a mv command
      in the bash terminal:<br>
    </p>
    <p>username@computername:~$ mv /home/username/wiendata/Al
      /media/username/1A50-FE2F/Al</p>
    <p>I rechecked wiendata directory after that and see the Al file is
      gone (i.e., was transferred successfully):<br>
    </p>
    <p>username@computername:~$ ls /home/username/wiendata/</p>
    <p>I check the space of /home again:<br>
    </p>
    <p>username@computername:~$ du -csh --block-size=M /home<br>
      2445M    /home<br>
      2445M    total<br>
    </p>
    <p>I see that the used /home space dropped 179 MB (= 2624M -
      2445M).  The 1 MB could be due to rounding error or other active
      processes going on the system taking it, but I was essentially
      able to get an entire 180 MB of free space back for this case as
      expected.<br>
    </p>
    [1] <a href="https://ubuntuforums.org/" target="_blank">https://ubuntuforums.org/</a><br>
    [2] <a href="https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/" target="_blank">https://www.tecmint.com/check-linux-disk-usage-of-files-and-directories/</a>
    <p></p>
    <div>On 4/27/2024 11:23 AM, shamik
      chakrabarti wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Sir, also it is showing 139 Mb however my device
        space get decreased by almost 15 GB<br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sat, 27 Apr 2024 at 22:51,
          shamik chakrabarti <<a href="mailto:shamik15041981@gmail.com" target="_blank">shamik15041981@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">total 139M<br>
            4.0K drwxr-x--- 28 shamik shamik 4.0K Apr 26 23:48 .<br>
            ...<br>
            4.0K drwxrwxr-x  2 shamik shamik 4.0K Jun 26  2023 WIEN2k<br>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Sat, 27 Apr 2024 at
              22:48, Peter Blaha <<a href="mailto:peter.blaha@tuwien.ac.at" target="_blank">peter.blaha@tuwien.ac.at</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div>
                <p>ls -alsh</p>
                <p><br>
                </p>
                <div>Am 27.04.2024 um 17:57 schrieb shamik chakrabarti:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>Dear Prof. Gavin,</div>
                    <div><br>
                    </div>
                    <div>                Yes, wien2k is installed under
                      the /home directory. I have also checked /var.
                      there are log files as mentioned in your reference
                      [1]. In this regard, which files should I remove
                      to recover the lost spaces?</div>
                    <div><br>
                    </div>
                    <div>with regards,<br>
                    </div>
                  </div>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">On Sat, 27 Apr
                      2024 at 17:42, Gavin Abo <<a href="mailto:gabo13279@gmail.com" target="_blank">gabo13279@gmail.com</a>>
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                      <div>
                        <p>If your WIEN2k cases are located somewhere
                          under the /home directory, is this the
                          directory you are seeing the space increase
                          in?</p>
                        <p>If your looking at the space of the entire
                          storage drive before and after the
                          calculation, another possibility is the
                          increase could be due to normal usage logging
                          by the operating system.  So, if its the /var
                          you are seeing increase after the calculation,
                          it could potentially be due to that as log
                          files could be stored there as seen for
                          example at [1].<br>
                        </p>
                        [1] <a href="https://ubuntu.com/tutorials/viewing-and-monitoring-log-files#2-log-files-locations" target="_blank">https://ubuntu.com/tutorials/viewing-and-monitoring-log-files#2-log-files-locations</a><br>
                        <p>Kind Regards,</p>
                        Gavin<br>
                        WIEN2k user<br>
                        <div><br>
                        </div>
                        <div>On 4/26/2024 10:52 PM, shamik chakrabarti
                          wrote:<br>
                        </div>
                        <blockquote type="cite">
                          <div dir="auto">In that case, after deleting
                            the case directory, the space in hd of Linux
                            should be recovered. But the space is
                            decreasing every time, I ran some
                            calculations and after copying delete the
                            whole directory.</div>
                          <br>
                          <div class="gmail_quote">
                            <div dir="ltr" class="gmail_attr">On Sat, 27
                              Apr 2024, 01:48 Tomas Kana, <<a href="mailto:kana@seznam.cz" target="_blank">kana@seznam.cz</a>>
                              wrote:<br>
                            </div>
                            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The
                              dot and slash ./ means your current
                              directory<br>
                              <br>
                              <br>
                              Dear Sir,<br>
                               <br>
                                After echo $SCRATCH the output is:   ./<br>
                              <br>
                              <br>
                              Any comments<br>
                              <br>
                              <br>
                              <br>
                              On Fri, 26 Apr 2024 at 22:14, Peter Blaha
                              <<a href="mailto:peter.blaha@tuwien.ac.at" rel="noreferrer" target="_blank">peter.blaha@tuwien.ac.at</a>>
                              wrote:<br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                                  During   userconfig  you have
                              specified a SCRATCH directory. Only<br>
                                    you can know what you did there.<br>
                              <br>
                                  PS:   echo $SCRATCH   will tell you,
                              what you specified.<br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                                  Am 26.04.2024 um 13:30 schrieb shamik<br>
                                    chakrabarti:<br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                                      Dear Wien2k users,<br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                                                           After running
                              calculations I am saving<br>
                                        the data in external hdd while
                              deleting the same from linux.<br>
                                        However, at each time, after
                              deleting data, I have found that<br>
                                        some amount of spaces are not
                              recovered. Wien2k is saving some<br>
                                        files in Linux which I am not
                              able to delete.<br>
                              <br>
                                      My query is where are those extra
                              files are stored? Whether<br>
                                        there is some directory called
                              as _scratch but then I am not<br>
                                        able to find it either?<br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                                      Any response is eagerly awaited.<br>
                              <br>
                              <br>
                              <br>
                              <br>
                              <br>
                                      with regards,  <span style="white-space:pre-wrap"></span><br>
                            </blockquote>
                          </div>
                        </blockquote>
                      </div>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </div>

_______________________________________________<br>
Wien mailing list<br>
<a href="mailto:Wien@zeus.theochem.tuwien.ac.at" target="_blank">Wien@zeus.theochem.tuwien.ac.at</a><br>
<a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" rel="noreferrer" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br>
SEARCH the MAILING-LIST at:  <a href="http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html" rel="noreferrer" target="_blank">http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small">Dr. Shamik Chakrabarti</div><div style="font-size:small">Research Fellow </div><div style="font-size:small">Department of Physics</div><div style="font-size:small">Indian Institute of Technology Patna</div><div style="font-size:small">Bihta-801103</div><div style="font-size:small">Patna</div><div style="font-size:small">Bihar, India</div></div></div></div></div></div></div></div>