摘要:Linux下(Shell脚本 http://www.jbxue.com/jb/shell/)编程的一些注意事项,如编程风格、命名风格等。一、常用技巧ssh user@server bash < /path/to/local/script.sh#ssh到远程服务器执行一个脚本,此命令可以避免将脚本上传到远程服务器ssh user@host cat /path/to/remotefile | diff /path/to/localfile -#比较远程文件和本地文件的差异vim scp://username@host//path/to/somefile#vi一个远程文件curl ifconf
阅读全文