1、简单去掉注释的行
cat httpd.conf|grep -v ^\ *# >mayuehehe
2、修改ssh的端口
/usr/sbin/sshd -p 1433
3、查看某用户
id username
4、查看环境变量
set 或 env
5、换 yum源
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo
6、打开指定端口
iptables -A INPUT -p udp --dport 58 -j ACCEPT
7、测试硬盘速度
hdparm -Tt /dev/sda
8、时间同步
ntpdate -s time.nist.gov
hwclock --systohc
本文转载自:http://www.jb51.net/LINUXjishu/21719.html
linux 常用脚本、命令
精选 转载chinaren9992001 博主文章分类:操作系统
文章标签 linux 常用脚本 命令 文章分类 运维
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章