Overview
During the operation of FineBI, some processes will execute system commands and requests on the server. This article will introduce some system commands in FineBI, allowing you to report security issues.
Introduction
Module | Linux Command | Purpose |
FineBI | bash | Check bash. |
ifconfig -a | Get MAC address. | |
sh -c cat /proc/cpuinfo | grep processor |wc -l | CPU information | |
free -g | Memory information | |
sysctl vm.max_map_count sysctl vm.overcommit_memory sysctl vm.overcommit_ratio | Virtual information | |
date -R | Timezone information | |
sh -c echo $LANG | Language information | |
sh -c hostname | host information | |
cat /etc/hosts | host file information | |
gcc --version sh -c strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX_3.4.22 sh -c strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX_3.4.22 | gcc information | |
fc-list :lang=zh | Font information | |
sh -c ulimit -a | grep 'open files' | Open file number information. | |
Cloud Operation | cat /etc/redhat-release | Get system information. |
cat /etc/issue | Get system information. | |
java -version | Get JDK version information. | |
cat /proc/cpuinfo | grep -w "model name" | uniq | Get CPU model. | |
cat /proc/cpuinfo |grep processor | wc -l | Get number of CPU cores. | |
ps -aux | sort -k6nr | sed -n 2p | awk '{print $6}' | View the memory usage of the process with the second largest memory usage. | |
ps -aux | sort -k6nr | sed -n 1p | awk '{print $6}' | View the memory usage of the process with the largest memory usage. | |
dmidecode -t 1 | View motherboard information. |