I wrote a super tiny Linux system fetch script in just shell commands

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/linux

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • sysfetch

    A super tiny system information fetch script written in BASH

    [[email protected] ~]# git clone https://github.com/wick3dr0se/fetch.sh.git Cloning into 'fetch.sh'... remote: Enumerating objects: 118, done. remote: Counting objects: 100% (118/118), done. remote: Compressing objects: 100% (95/95), done. remote: Total 118 (delta 35), reused 85 (delta 23), pack-reused 0 Receiving objects: 100% (118/118), 481.18 KiB | 4.33 MiB/s, done. Resolving deltas: 100% (35/35), done. [[email protected] ~]# ls after before fetch.sh LTBLAKET.zip perllib scripts src storage [[email protected] ~]# cd fetch.sh/ [[email protected] ~/fetch.sh]# ls fetch.sh README.md screen.png [[email protected] ~/fetch.sh]# ./fetch.sh [email protected] kernel ~ 4.18.0-348.2.1.el8_5.x86_64 uptime ~ 2 days, 23 hours, 49 minutes os ~ Red Hat Enterprise Linux 8.5 (Ootpa) arch ~ x86_64 de/wm ~ awk: fatal: cannot open file `/usr/share/xsessions/*' for reading (No such file or directory) theme ~ Adwaita cpu ~ Intel Core (Broadwell, no TSX, IBRS)sort: cannot read: '/sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq': No such file or directory GHz gpu ~ Red Hat, Inc QXL paravirtual graphic card (rev 04) pkgs ~ not found ram ~ 1977 MiB./fetch.sh: line 100: let: swap_mb = / 1024: syntax error: operand expected (error token is "/ 1024") swap ~ MiB term ~ sshd shell ~ bash [[email protected] ~/fetch.sh]# swapon -s [[email protected] ~/fetch.sh]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel BIOS Vendor ID: Red Hat CPU family: 6 Model: 61 Model name: Intel Core Processor (Broadwell, no TSX, IBRS) BIOS Model name: RHEL-8.2.0 PC (Q35 + ICH9, 2009) Stepping: 2 CPU MHz: 1596.304 BogoMIPS: 3192.60 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 4096K L3 cache: 16384K NUMA node0 CPU(s): 0 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap xsaveopt arat umip md_clear arch_capabilities [[email protected] ~/fetch.sh]#

  • ShellCheck

    ShellCheck, a static analysis tool for shell scripts

    I would run shellcheck on your script and try to resolve any messages it gives for best practices

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • starship

    ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!

    Lmao thanks! The terminal is kitty & I use starship

  • awk-hack-the-planet

    Source code repo for Ben Porter (FreedomBen)'s talk at Linux Fest Northwest 2019 and 2020

    Awk: Hack the Planet It has a youtube vid and problems to work through.

  • simple-awk

    Simple and practical guide to awk.

    Simple Awk which is basically someone's notes with lots of examples.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts