linux 常用脚本、命令

软件发布|下载排行|最新软件

当前位置:首页操作系统Linux操作系统

linux 常用脚本、命令

  2020-12-11 我要评论
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

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们