linux-tutorial/codes/linux/ops/sys/install-tools.sh

97 lines
2.5 KiB
Bash
Raw Normal View History

2018-02-02 15:28:50 +08:00
#!/usr/bin/env bash
2019-03-04 20:41:51 +08:00
cat << EOF
2018-02-02 15:28:50 +08:00
###################################################################################
# 安装基本的命令工具
2019-05-07 14:29:16 +08:00
# @author: Zhang Peng
2018-02-02 15:28:50 +08:00
#
# 如果不知道某个命令工具是由哪个包提供的,使用 yum provides xxx
# 或 yum whatprovides xxx 来查找
###################################################################################
2019-03-04 20:41:51 +08:00
EOF
cat << EOF
2018-02-02 15:28:50 +08:00
###################################################################################
2019-02-22 19:15:35 +08:00
# 执行本脚本后支持的命令工具清单:
2018-02-02 15:28:50 +08:00
# 核心工具df、du、chkconfig
2019-02-22 19:15:35 +08:00
# 网络工具ifconfig、netstat、route、iptables
2018-02-02 15:28:50 +08:00
# IP工具ip、ss、ping、tracepath、traceroute
# DNS工具dig、host、nslookup、whois
# 端口工具lsof、nc、telnet
# 下载工具curl、wget
# 编辑工具emacs、vim
# 流量工具iftop、nethogs
# 抓包工具tcpdump
2018-02-09 13:55:54 +08:00
# 压缩工具unzip、zip
2019-02-22 19:15:35 +08:00
# 版本控制工具git、subversion
2018-02-02 15:28:50 +08:00
###################################################################################
2019-03-04 20:41:51 +08:00
EOF
2018-02-02 15:28:50 +08:00
# 核心工具
echo -e "\n>>>>>>>>> install coreutils(df、du)"
yum install -y coreutils
echo -e "\n>>>>>>>>> install chkconfig"
yum install -y chkconfig
# 网络工具
echo -e "\n>>>>>>>>> install net-tools(ifconfig、netstat、route)"
yum install -y net-tools
2019-02-22 19:15:35 +08:00
echo -e "\n>>>>>>>>> install iptables"
yum install -y iptables
2018-02-02 15:28:50 +08:00
# IP工具
echo -e "\n>>>>>>>>> install iputils(ping、tracepath)"
yum install -y iputils
echo -e "\n>>>>>>>>> install traceroute"
yum install -y traceroute
echo -e "\n>>>>>>>>> install iproute(ip、ss)"
yum install -y iproute
# 端口工具
echo -e "\n>>>>>>>>> install lsof"
yum install -y lsof
echo -e "\n>>>>>>>>> install nc"
yum install -y nc
echo -e "\n>>>>>>>>> install netstat"
yum install -y netstat
# DNS工具
echo -e "\n>>>>>>>>> install bind-utils(dig、host、nslookup)"
yum install -y bind-utils
echo -e "\n>>>>>>>>> install whois"
yum install -y whois
# 下载工具
echo -e "\n>>>>>>>>> install curl"
yum install -y curl
echo -e "\n>>>>>>>>> install wget"
yum install -y wget
# 编辑工具
echo -e "\n>>>>>>>>> install emacs"
yum install -y emacs
echo -e "\n>>>>>>>>> install vim"
yum install -y vim
# 流量工具
echo -e "\n>>>>>>>>> install iftop"
yum install -y iftop
echo -e "\n>>>>>>>>> install nethogs"
yum install -y nethogs
# 抓包工具
echo -e "\n>>>>>>>>> install tcpdump"
yum install -y tcpdump
2018-02-09 13:55:54 +08:00
# 压缩工具
2019-02-22 18:57:46 +08:00
echo -e "\n>>>>>>>>> install unzip"
2018-02-09 13:55:54 +08:00
yum install -y unzip
2019-02-22 18:57:46 +08:00
# 版本控制工具
echo -e "\n>>>>>>>>> install git"
yum install -y git
2019-02-22 19:15:35 +08:00
echo -e "\n>>>>>>>>> install subversion"
yum install -y subversion