shell
mamls
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
获取前一天的值
location=`pwd`'/'stat_date=`date -d '-1 day' +%Y%m%d`if [ "$1" ] ; then stat_date=$1 fi原创 2017-04-19 10:02:29 · 357 阅读 · 0 评论 -
查看网络流量
iftop -n -i em1原创 2017-04-19 16:01:29 · 575 阅读 · 0 评论 -
修改 linux 文件时间
stat filenametouch -t 201606020824.54 filename原创 2017-09-21 22:14:30 · 321 阅读 · 0 评论 -
netstat -lnt
Active Internet connections (only servers)netstat -lantp|grep 5672|grep 127原创 2017-09-22 22:13:36 · 1197 阅读 · 0 评论 -
linux系统启动了多久
cat /proc/uptime| awk -F. '{run_days=$1 / 86400;run_hour=($1 % 86400)/3600;run_minute=($1 % 3600)/60;run_second=$1 % 60;printf("系统已运行:%d天%d时%d分%d秒",run_days,run_hour,run_minute,run_second)}'原创 2017-09-22 22:05:38 · 339 阅读 · 0 评论 -
sqoop1 脚本示例
start='sqoop import 'oracle_param='--connect jdbc:oracle:thin:@10.10.10.10:1521:ccd --username ccd --password 123456 'comm_param='--fields-terminated-by "\001" -m 1 'comm_cmd=$start$oracle_para原创 2017-10-17 22:38:51 · 403 阅读 · 0 评论 -
修改所属用户和组
chown -R hdfs.hadoop data原创 2017-09-21 22:07:22 · 1217 阅读 · 0 评论 -
update 命令
显示系统已经运行了多长时间,它依次显示下列信息:当前时间、系统已经运行了多长时间、目前有多少登陆用户、系统在过去的1分钟、5分钟和15分钟内的平均负载。原创 2017-09-21 22:07:54 · 2240 阅读 · 0 评论 -
syntax error near unexpected token `
shell 脚本执行错误:syntax error near unexpected token `很有可能是因为windows 编辑的文件上传到linux的原因。原创 2017-09-21 22:09:35 · 791 阅读 · 0 评论
分享