本文共 677 字,大约阅读时间需要 2 分钟。
这个是windows下的shell的结束符在linux下标示失败的问题
可以在linux下vim打开
:set fileformat=unix
seq -f '201303%02g.mp4' 1 31|xargs -i cp 20130101.mp5 {}
echo "hell2o" | mail -s "testtitle"
readlink -f "script/cron/check_translate"
读取当前脚本的路径
这个对于要忽略比如sublime的sftp-config.json特别好用
shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
在bash_profile中加入这两条命令能让命令实时写入~/.bash_history
首先可以使用lsb_release -a 命令
这个命令适用所有的linux
查看内核版本使用uname -r
第二种:
cat /etc/redhat-release
或者rpm -q redhat-release
这种适用于RedHat和Centos
转载地址:http://bgypl.baihongyu.com/