Scriptnya untuk menampilkan informasi sistem di Fedora bisa dilihat dibawah ini

#!/bin/bash
# (c) 2013 Kacibang Kerangen
# Dibawah lisensi : Kera Tonggal
echo "Versi             : " $(cat /etc/redhat-release)
echo "Resolusi Monitor  : " $(xdpyinfo  | grep 'dimensions:' | awk '{print $2}')
echo "Hostname          : " $(hostname)
echo "DE                : " $DESKTOP_SESSION
echo "Direktori Home    : " $HOME
echo "User ID           : " $USER
echo "GROUP             : " $(id -Gn)
echo "Total Memory      : " $(free --giga -h | awk '/^Mem:/{print $2}')
echo "Hardisk           : " $(df -h --output=size --total | awk 'END {print $1}')

simpan script diatas sebagai informasi.sh ubah permission-nya lalu eksekusi

chmod +x informasi.sh; ./informasi.sh

hasil yang muncul dari eksekusi file diatas

Versi             :  Fedora release 32 (Thirty Two)
Resolusi Monitor  :  1920x1080
Hostname          :  siding
DE                :  xfce
Direktori Home    :  /home/tommy
User ID           :  tommy
GROUP             :  tommy wheel libvirt docker vboxusers
Total Memory      :  7.8G
Hardisk           :  1021G

Leave a comment

Your email address will not be published. Required fields are marked *