linux 网络初始化工具,Linux 常用系统工具与初始化配置

网络工具配置

在CS7上,最小化系统上是没有(ifconfig)等网络管理命令的,需要安装net-tools

# yum install net-tools

安装iftop:# yum -y install libpcap libpcap-devel ncurses ncurses-devel# wget http://www.ex-parrot.com/pdw/iftop/download/iftop-0.17.tar.gz# tar -zxvf iftop-0.17.tar.gz

# cd iftop-0.17

# ./configure

# make

# make install

记录history 时间和用户

在/etc/profile 中加入一行:export HISTTIMEFORMAT="%F %T `whoami` "

source /etc/profile

将history 命令历史记录输入到message日志export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; }); \

logger "[euid=$(whoami)]":$(who am i):[`pwd`]"$msg"; }'

主机名解析

注意:主机名不能带下划线,域名解析不支持,使用短横线连接。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值