Skip to content

Instantly share code, notes, and snippets.

@henrytriplette
Last active May 3, 2019 09:52
Show Gist options
  • Select an option

  • Save henrytriplette/cabde9d874dbd779fe87d6d89f1145d6 to your computer and use it in GitHub Desktop.

Select an option

Save henrytriplette/cabde9d874dbd779fe87d6d89f1145d6 to your computer and use it in GitHub Desktop.

Revisions

  1. henrytriplette revised this gist May 3, 2019. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions RaspberryPi Clean VarCache.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ sudo du -xh / | grep -P "G\t"

    ## Cleanup
    ```
    sudo apt-get clean
    sudo apt-get autoclean
    sudo apt-get autoremove
    ```
    @@ -18,3 +19,8 @@ sudo apt-get autoremove
    ```
    sudo logrotate -d /etc/logrotate.conf
    ```

    ## Remove unused programs
    ```
    sudo apt-get purge wolfram-engine libreoffice* scratch -y
    ```
  2. henrytriplette revised this gist May 3, 2019. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions RaspberryPi Clean VarCache.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,8 @@
    ## List Free Space
    ```
    df -Bm
    ```

    ## List Space by usage
    ```
    sudo du -xh / | grep -P "G\t"
  3. henrytriplette created this gist Feb 11, 2019.
    15 changes: 15 additions & 0 deletions RaspberryPi Clean VarCache.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    ## List Space by usage
    ```
    sudo du -xh / | grep -P "G\t"
    ```

    ## Cleanup
    ```
    sudo apt-get autoclean
    sudo apt-get autoremove
    ```

    ## Rotate logs
    ```
    sudo logrotate -d /etc/logrotate.conf
    ```