博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
系统知识点笔记
阅读量:6978 次
发布时间:2019-06-27

本文共 677 字,大约阅读时间需要 2 分钟。

shell脚本出现问题:unexpected end of file

这个是windows下的shell的结束符在linux下标示失败的问题

可以在linux下vim打开

:set fileformat=unix

 

系统seq的-f用法:

seq -f '201303%02g.mp4' 1 31|xargs -i cp 20130101.mp5 {}

 

shell使用mail命令发邮件

echo "hell2o" | mail -s "testtitle" 

 

读取脚本的绝对路径:

readlink -f "script/cron/check_translate"

读取当前脚本的路径

 

windows的TortoiseSVN的右键可以设置忽略哪些文件

这个对于要忽略比如sublime的sftp-config.json特别好用

 

history命令是先保存在内存中的,当用户退出或者调用history -a的时候才会写入到~/.bash_history

shopt -s histappend

PROMPT_COMMAND="history -a;$PROMPT_COMMAND"

在bash_profile中加入这两条命令能让命令实时写入~/.bash_history

 

 

查看centos版本方法有两种

首先可以使用lsb_release -a 命令

这个命令适用所有的linux

 

查看内核版本使用uname -r

 

第二种:

cat /etc/redhat-release

或者rpm -q redhat-release

 

这种适用于RedHat和Centos

转载地址:http://bgypl.baihongyu.com/

你可能感兴趣的文章
SpriteBuilder中如何平均拉伸精灵帧动画的距离
查看>>
poj1330Nearest Common Ancestors 1470 Closest Common Ancestors(LCA算法)
查看>>
dojo从asp.net中获取json数据
查看>>
Android:problem opening wizard the selected wizard could not be started
查看>>
PostgreSQL md5 auth method introduce, with random salt protect
查看>>
【spring框架】spring整合hibernate初步
查看>>
JVM调优总结
查看>>
PostgreSQL 9.3 beta2 stream replication primary standby switchover bug?
查看>>
创业思维 - Qunar的故事
查看>>
STM32中GPIO的8种工作模式
查看>>
一分钟了解阿里云产品:先知计划
查看>>
Centos 7环境下源码安装PostgreSQL数据库
查看>>
推荐一款 Flutter Push 推送功能插件
查看>>
数据结构(队列实现篇)
查看>>
iframe 数据传递
查看>>
ionic app 开发和生产环境的配置
查看>>
javascript数据结构与算法-队列
查看>>
如何定时备份数据库并上传七牛云
查看>>
如何选取合适的前端动效方案?
查看>>
js的执行机制
查看>>