整理分享一些常用的linux脚本(长期更新)

文章目录[x]
  1. 1:环境准备
  2. 2:Bench相关
  3. 2.1:LemonBench
  4. 2.2:Superspeed
  5. 2.3:Bench
  6. 2.4:SpeedTest-Cli
  7. 2.5:UnixBench
  8. 3:检测类脚本
  9. 3.1:内存检测
  10. 3.2:uPing
  11. 3.3:Besttrace4Linux
  12. 3.4:PrettyPing
  13. 3.5:mPing

环境准备

apt-get update
apt-get install python curl wget screen -y
或
yum update
yum -y install curl wget screen

Bench相关

LemonBench

curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
<pre class="prettyprint">

Superspeed

curl -Lso- -no-check-certificate https://raw.githubusercontent.com/wn789/Superspeed/master/superbench.sh | bash

Bench

curl -Lso- bench.sh | bash

SpeedTest-Cli

wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py

UnixBench

wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh

检测类脚本

内存检测

#CentOS / RHEL
yum groupinstall "Development Tools" -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out
#Ubuntu / Debian
apt-get install build-essential -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

uPing

screen -S uping
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/uPing/master/uping.py
python uping.py

Besttrace4Linux

wget http://cdn.ipip.net/17mon/besttrace4linux.zip
unzip besttrace4linux.zip
chmod +x besttrace
#使用
./besttrace -q 1 目标IP

PrettyPing

wget https://raw.githubusercontent.com/denilsonsa/prettyping/master/prettyping
mv prettyping /usr/local/bin
chmod +x /usr/local/bin/prettyping
prettyping 目标IP

 

mPing

wget https://raw.githubusercontent.com/helloxz/mping/master/mping.sh
bash mping.sh

 

 

点赞