create a shell to all fetch all compuntenten vom pc rechner
- User
create a shell to all fetch all compuntenten vom pc rechner
Assistant
Here's a shell script to fetch various components and information from your PC:
#!/bin/bash echo "===== PC Component Information =====" # System information echo -e "\n--- System Information ---" echo "Hostname: $(hostname)" echo "Kernel: $(uname -r)" echo "OS: $(cat /etc/os-release | grep PRETTY_NAME | cut -d'"' -f2)" # CPU information echo -e "\n--- CPU Information ---" lscpu | grep "Model name\|CPU(s)\|Thread(s) per core\|Core(s) per socket" # Memory information echo -e "\n--- Memory Information ---" free -h # Disk information echo -e "\n--- Disk Information ---" df -h | grep -v "tmpfs\|udev" echo -e "\nDisk devices:" lsblk -o NAME,SIZE,TYPE,MOUNTPOINT # GPU information echo -e "\n--- GPU Information ---" if command -v lspci &> /dev/null; then lspci | grep -i 'vga\|3d\|2d' else echo "lspci command not found" fi # Network information echo -e "\n--- Network Information ---" ip a | grep -E 'inet |^[0-9]' # USB devices echo -e "\n--- USB Devices ---" if command -v lsusb &> /dev/null; then lsusb else echo "lsusb command not found" fi # PCI devices echo -e "\n--- PCI Devices ---" if command -v lspci &> /dev/null; then lspci else echo "lspci command not found" fi # BIOS/UEFI information echo -e "\n--- BIOS/UEFI Information ---" if command -v dmidecode &> /dev/null; then sudo dmidecode -t bios 2>/dev/null || echo "Need sudo privileges for BIOS info" else echo "dmidecode command not found" fi
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.