![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux 命令
郭从松
郭从松
展开
-
如何去掉Linux文件中的回车符号
- 用命令dos2unix $ dos2unix b.txt - 用命令tr $ tr -d "\015" b.txt - 用命令sed $ sed -e 's/\x0d//g' a.txt > b.txt转载 2011-11-17 13:15:28 · 1059 阅读 · 0 评论 -
linux shell 流程控制(条件if,循环【for,while】,选择【case】语句实例
linux shell有一套自己的流程控制语句,其中包括条件语句(if),循环语句(for,while),选择语句(case)。下面我将通过例子介绍下,各个语句使用方法。 一、shell条件语句(if用法)if语句结构[if/then/elif/else/fi] if 条件测试语句 thenaction[elif 条件actionelseaction转载 2011-11-17 13:16:27 · 276 阅读 · 0 评论 -
SHELL中计算时间差方法
#!/bin/shFirstTime=`date +"%Y-%m-%d %H:%M:%S"` sleep 1LastTime=`date +"%Y-%m-%d %H:%M:%S"`echo "LastTime "$LastTime echo "FirstTime "$FirstTimeLastTime_data=`date -d "$LastTim原创 2011-11-28 10:49:40 · 872 阅读 · 0 评论 -
在Redhat上禁止IPV6
Add a new file /etc/modprobe.d/ECS.conf containingalias net-pf-10 offalias ipv6 offEdit /etc/sysconfig/network and add a line sayingNETWORKING_IPV6=offThen dochkconfig ip6tables原创 2011-12-02 17:41:22 · 391 阅读 · 0 评论 -
bak
>/dev/null 2>&1http://www.west263.com/info/html/chengxusheji/Javajishu/20080226/49389.htmlhttp://www.west263.com/info/html/chengxusheji/Javajishu/20080226/49389_2.htmlHowever, wh转载 2011-12-02 19:31:17 · 400 阅读 · 0 评论