Tag Archives: linux

Linux服务器时间设置及同步

1 手动设置 date命令: date :查看当前时间,结果如下:Wed Feb  4 16:29:51 CST 2015 date -s 16:30:00 :设置当前时间,结果如下:Wed Feb  4 16:30:00 CST 2015 date -s “YYYY-MM-DD hh:mm” 如date -s “2015-02-04... Read More | Share it now!

Shell script variable not empty (-z option)

Of course it does. After replacing the variable, it reads , which is not a valid  if ] ... Read More | Share it now!

Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数

Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数 特殊变量列表 变量 含义 $0 当前脚本的文件名 $n 传递给脚本或函数的参数。n... Read More | Share it now!

Shell中的数组及其相关操作

https://blog.csdn.net/Jerry_1126/article/details/52027539 Shell中数据类型不多,比如说字符串,数字类型,数组。数组是其中比较重要的一种,其重要应用场景,可以求数组长度,元素长度,遍历其元素,元素切片,替换,删除等操作,使用非常方便。 Shell中的数组不像JAVA/C,只能是一维数组,没有二维数组;数组元素大小无约束,也无需先定义数组的元素个数;但其索引则像JAVA/C/Python,从0开始,下面其常用的方式进行总结. 【数组声明】 备注: 1)... Read More | Share it now!

Linux命令——timeout

命令简介 运行指定的命令,如果在指定时间后仍在运行,则杀死该进程。用来控制程序运行的时间。 使用方法 timeout 数字 命令... Read More | Share it now!

w3mCentOS下安装,及w3m的使用

△△△△△△△△如果你用的是centos或readhat企业版,可以用下面的命令安装。△△△△△△△△△△ sudo yum install w3m △△△△△△△△如果你用的是Debian或ubuntu,可以用下面的命令安装。... Read More | Share it now!

Filebeat中文指南

翻译自:https://www.elastic.co/guide/en/beats/filebeat/current/index.html 下面的博客是公司里使用filebeat的实例,可以直接借鉴,有问题可以向我反馈。 Filebeat... Read More | Share it now!

date命令的帮助信息

# date –help 用法:date … 或:date YY]] 以给定的格式显示当前时间,或是设置系统日期。 -d,–date=字符串            ... Read More | Share it now!