-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathutil.sh
More file actions
55 lines (46 loc) · 1.04 KB
/
Copy pathutil.sh
File metadata and controls
55 lines (46 loc) · 1.04 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
clear
menu(){
echo "----------------------------"
echo
echo " MENU"
echo
echo "----------------------------"
echo
echo "1. Launch htop to see processor acitvities"
echo "2. Users currently logged in"
echo "3. Show CPU info"
echo "4. Show filesystem"
echo "5. Show graphics processor"
echo "6. Open Network manager"
echo "7. Show pci devices in tree format"
echo "8. Show space available on hard disk"
echo "9. Flex arch btw :)"
echo "10. Exit"
echo
echo "----------------------------"
echo
echo "Please enter option [1 - 10]:"
}
option=y
while [ "$option" != "10" ]
do
menu
read option
case $option in
1) htop;; # the user has to press [q] to exit and get back to main menu
2) who;;
3) cat /proc/cpuinfo | grep -Em 4 "model name|cpu MHz|cpu cores|vendor_id";;
4) lsblk;;
5) lspci -v | grep -i vga;;
6) nmtui;;
7) lspci -vt;;
8) df -i;;
9) neofetch | lolcat;;
10) break;; # exit menu
*) echo "Wrong option";; # * means anything else
esac
read -p "Press [enter] key to continue..."
clear
done
clear