From 6e4184f3f31657849d7d2eae109e8e5a7d2eacce Mon Sep 17 00:00:00 2001 From: K9T33NwthTookThis <127902233+K9T33NwthTookThis@users.noreply.github.com> Date: Mon, 23 Jun 2025 22:58:36 +0100 Subject: [PATCH] Update info-dumper.sh changed echo to printf --- info-dumper.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/info-dumper.sh b/info-dumper.sh index 3a1629d..910aadb 100644 --- a/info-dumper.sh +++ b/info-dumper.sh @@ -5,25 +5,25 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi -echo "version info:" > /tmp/rpc-dump.txt +printf "version info:" > /tmp/rpc-dump.txt cat /proc/version >> /tmp/rpc-dump.txt -echo "\n journalctl:" >> /tmp/rpc-dump.txt +printf "\n journalctl:" >> /tmp/rpc-dump.txt journalctl -n 50 --no-pager >> /tmp/rpc-dump.txt -echo "\n dmesg:" >> /tmp/rpc-dump.txt +printf "\n dmesg:" >> /tmp/rpc-dump.txt dmesg -H | tail -50 >> /tmp/rpc-dump.txt -echo "\n storage:" >> /tmp/rpc-dump.txt +printf "\n storage:" >> /tmp/rpc-dump.txt df -h >> /tmp/rpc-dump.txt -echo "\n cpu info:" >> /tmp/rpc-dump.txt +printf "\n cpu info:" >> /tmp/rpc-dump.txt lscpu >> /tmp/rpc-dump.txt -echo "\n pci:" >> /tmp/rpc-dump.txt +printf "\n pci:" >> /tmp/rpc-dump.txt lspci >> /tmp/rpc-dump.txt -echo "\n uptime:" >> /tmp/rpc-dump.txt +printf "\n uptime:" >> /tmp/rpc-dump.txt uptime >> /tmp/rpc-dump.txt # Remove all user names on system