-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfetch.sh
More file actions
executable file
·37 lines (31 loc) · 925 Bytes
/
Copy pathfetch.sh
File metadata and controls
executable file
·37 lines (31 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
KERNEL=$(uname -r)
USER=$(whoami)
HOSTNAME=$(hostnamectl hostname)
OS=$(cat /etc/os-release | grep PRETTY | cut -d '"' -f 2)
ARCH=$(uname -m)
CPU=$(grep -m1 "model name" /proc/cpuinfo | cut -d: -f2)
TMEM=$(grep MemTotal /proc/meminfo | cut -d : -f 2)
ART="
*----------------*
\ /\ /
\ / \ /
\ /____\ /
/ \||||/ \
/ \ / \
/ \/ \
*----------------*
"
echo -e "\nloading sys info for\t\t$USER@$HOSTNAME"
echo -e "${ART}"
echo -e "+-------------------------------------------------+"
echo -e "| OS: ${OS}"
echo -e "| Architecture: ${ARCH}"
echo -e "| Kernel: ${KERNEL}"
echo -e "| Hostname: ${HOSTNAME}"
echo -e "+-------------------------------------------------+"
echo -e "| CPU:${CPU}"
echo -e "| Total Memory:${TMEM}"
echo -e "| Shell:${SHELL}"
echo -e "| Terminal:${TERM}"
echo -e "+-------------------------------------------------+\n"