This commit is contained in:
Alexey Berezhok
2024-03-19 22:05:27 +03:00
commit 346a50856b
1572 changed files with 182163 additions and 0 deletions

32
bin/v-list-sys-cpu-status Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
# info: list system cpu info
# options:
#
# example: v-list-sys-cpu-status
#
# This function lists cpu information
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
# Displaying top 30
top -b -n1 | head -n 37
echo -en "\n---------------------------------------------"
echo -en "---------------------------------------------\n\n"
# Displaying process tree
pstree -s
echo -en "\n---------------------------------------------"
echo -en "---------------------------------------------\n\n"
# Displaying CPU information
grep 'model name' /proc/cpuinfo | cut -f 2 -d : | sed "s/ //"
echo
lscpu 2> /dev/null
#----------------------------------------------------------#
# Hestia #
#----------------------------------------------------------#
exit