Skip to content

Instantly share code, notes, and snippets.

@aejii
aejii / fetch.sh
Created July 2, 2021 15:27
information %ram, %cpu + nbr cpu + nom actuel (ubuntu/debian)
#!/bin/bash
display-frame() {
TERMW=$(tput cols)
TERMH=$(tput lines)
BUFFER=""
print-line
print-line "\t\e[1mUser:\e[0m $(whoami)"
print-line "\t\e[1mKernel:\e[0m $(uname -sr)"