Skip to content

Instantly share code, notes, and snippets.

@agusvama
Created October 27, 2016 04:51
Show Gist options
  • Save agusvama/09e0523d9db1c3db0f6f2054c1c038ec to your computer and use it in GitHub Desktop.
Save agusvama/09e0523d9db1c3db0f6f2054c1c038ec to your computer and use it in GitHub Desktop.
turn off slackware cleaning /tmp folder before, leaveing SBo cache folder
#!/bin/bash
echo cleaning /tmp
cd /tmp
find ! -name 'SBo' ! -name . ! -name .. -type d -exec rm -rf {} +
find ! -name . ! -name .. -type f -exec rm -f {} +
echo turn off
shutdown -h now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment