Download Attune CE

Free Up Linux Disk Space

Exported on 23-Aug-2021 15:20:00

This blueprints removes redundant files from a Linux system.

Parameters

Name Type Script Reference Default Value Comment
s1 Linux / Unix Server s1
s1c Linux OS Credential s1c

1 - Execute Deletion Tasks

Deletes files and directories from following locations:

  • Temporary storage
  • Cache Storage
  • Trash Storage
The connection details have changed from the last step.

Login as user on node

Connect via SSH
ssh user@hostname
This is a Bash Script make sure you run it with bash -l from a terminal session
#Remove all temporary files
sudo rm -vfr /tmp/*

#Remove cache files
rm -vfr ~/.cache/*
sudo rm -vfr /root/.cache/*

#Empty trash
rm -rf ~/.local/share/Trash/*
sudo rm -rf /root/.local/share/Trash/*