Linux
丶一派胡言丶
这个作者很懒,什么都没留下…
展开
-
Linux查看文件命令
1、tail 命令 备注 tail date.log 输出文件末尾的内容,默认10行 tail -20 date.log 输出最后20行的内容 tail -n -20 date.log 输出倒数第20行到文件末尾的内容 tail -n +20 date.log 输出第20行到文件末尾的内容 tail -f date.log 实时监控文件内容增加,默认10行 2、head 命令 备注 head date.log 输出文件开头的内容,默认10行 hea原创 2020-11-19 20:50:12 · 332 阅读 · 0 评论 -
防火墙iptables和firewall相关操作
一、iptables相关操作 1.1 iptables安装命令: yum install iptables-services 1.2 查看iptables防火墙命令:systemctl status iptables.service 1.3 开启iptables防火墙命令:systemctl start iptables.service 1.4 关闭iptables防火墙命令:systemc...转载 2019-11-26 20:34:25 · 109 阅读 · 0 评论