linux-image-manager/scripts/client/check.sh

16 lines
797 B
Bash
Raw Normal View History

2020-05-15 18:37:41 +02:00
#!/bin/bash
# @author Kevin Veen-Birkenbach
# shellcheck source=/dev/null # Deactivate SC1090
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
2020-05-19 11:10:06 +02:00
echo "System check - Shows things which can be optimized:"
2020-05-15 18:37:41 +02:00
echo
2020-05-19 13:48:34 +02:00
info "Linux-Kernel: $(uname -r)"
2020-05-15 18:37:41 +02:00
info "Checking relevant home folders for duplicated files..."
fdupes -r "$HOME/Documents/" "$HOME/Downloads/" "$HOME/Images/" "$HOME/Desktop/" "$HOME/Music/" "$HOME/Pictures/" "$HOME/Videos"
info "Searching for files which are in \"$HOME\" but don't belong to user \"$USER\"..."
sudo find "$HOME" ! -user "$USER"
2020-05-19 11:10:06 +02:00
info "Searching for files which are in \"$HOME\" and bigger then 100MB..."
2020-05-18 23:24:24 +02:00
find ~ -type f -size +100M -exec ls -lh {} \;
2020-05-19 11:10:06 +02:00
info "Showing the installed Java versions..." &&
archlinux-java status