svn,git,scp,rsync,rake,ssh,wget,axel,aria2,nohup,grep,tail,siege,mitmproxy,ulimit,netstat,lsof
scp
把本地文件上传到server上
scp -P 1234 config/cert/dev/client.pem dev@xx.xxx.xxx:/srv/rorapps/fgcc/config/cert/production
把server数据传到本地
scp fgww:/srv/rorapps/fgcc/doc/yunying_20140601-20140601.csv ./
压缩传输
scp -C fgww:/srv/rorapps/fgcc/doc/yunying_20140601-20140601.csv ./
rsync
rsync -azcP huafei_search:/srv/rorapps/huafei2/log/production_20140618.log.bz2 ~/Workspace/test/huafei
目录
scp -r fgww:/srv/rorapps/fgcc/doc/static ./
svn VS git
svn
svn checkout server_url
svn status
svn diff **file
svn add **file
svn commit -m "xxx"
svn update
git
git clone server_url
git status
svn diff **file
git add -A
git commit -m "xxx"
git push origin master
svn 迁移到 git
svn to git
git svn clone http://svn.magus-soft.com/svn/movie/server/touch -s
git for-each-ref refs/remotes/tags | cut -d / -f 4- | grep -v @ | while read tagname; do git tag "$tagname" "tags/$tagname"; git branch -r -d "tags/$tagname"; done
git for-each-ref refs/remotes | cut -d / -f 3- | grep -v @ | while read branchname; do git branch "$branchname" "refs/remotes/$branchname"; git branch -r -d "$branchname"; done
git remote add origin git@git.funguide.com.cn:movie_java/touch.git
git branch -a
git push origin '*:*'
git push origin --all
git push origin --tags
rake
防止运行耗时操作时网络中断 nohup
nohup ./cmb_mplus_export_yunying.sh start_time=2014-06-03 end_time=2014-06-03 & [2] 23728
ssh
ssh -vvv -N -L 5433/192.168.0.132/6435 -p 6521 menxu@**.**.**.**
ssh 无password登陆 http://cn.soulmachine.me//blog/20120102/
wget
usage: wget -i http://*
说明: http://*为下载文件网址及文件名称
example: wget -i http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
用axel加快下载速度
安装axel
apt-get install axel
执行axel
usage: axel -n 10 -o /tmp/ http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
aria2断点下载文件
apt-get install aria2
example: aria2c http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
分段下载:
example: aria2c -s 2 http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
断点下载:
example: aria2c -c http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
下载torrent文件
example: aria2c -o *.torrent http://*
nohup 任务
nohup rake pay_code:order_record start_time=2014-09-08 end_time=2014-09-08 &
使用 jobs 查看任务。
使用 fg %n 关闭
grep 查日志
siege 压力測试
/usr/local/Cellar/siege/3.0.7_1/bin/siege -c
50 -r 100 http://xxxxxxxxxxxxxxxx/ticket/v4/callback/zhifu_callback
mitmproxy 代理分析请求完整的參数get/post
http://blog.csdn.net/menxu_work/article/details/44780001
ulimit 限制系统用户对shell资源的訪问
查看第三方请求连接数
ulimit -a/n
netstat 显示各种网络相关信息
如网络连接,路由表,接口状态 (Interface Statistics)。masquerade 连接,多播成员 (Multicast Memberships) 等等
看TCP的连接数
netstat -nap | grep tcp |wc -l
lsof 列出当前系统打开文件的工具
lsof |grep 'test/test3'
lsof -i :3306
lsof -i tcp:80
curl Access-Control-Allow-Origin 是 *,限定于 GET,POST,PUT
curl -X PUT -H "Origin: http://mendd.com" -Iv https://s3.cn-north-1.amazonams.com.cn/****.png
svn,git,scp,rsync,rake,ssh,wget,axel,aria2,nohup,grep,tail,siege,mitmproxy,ulimit,netstat,lsof的更多相关文章
- linux下不同服务器间数据传输(rcp,scp,rsync,ftp,sftp,lftp,wget,curl)(zz)
linux下不同服务器间数据传输(rcp,scp,rsync,ftp,sftp,lftp,wget,curl) 分类: linux2011-10-10 13:21 8773人阅读 评论(1) 收藏 举 ...
- linux下不同服务器间数据传输(rcp,scp,rsync,ftp,sftp,lftp,wget,curl)
因为工作原因,需要经常在不同的服务器见进行文件传输,特别是大文件的传输,因此对linux下不同服务器间数据传输命令和工具进行了研究和总结.主要是rcp,scp,rsync,ftp,sftp,lftp, ...
- [转]通过rsync+inotify-tools+ssh实现触发式远程实时同步
文件的同步镜像在很多地方都需要用到,因此rsync这款免费软件得到了广泛的应用,包括在Windows平台上,都已经有了支持rsync的“cwRsyncServer”. 但是,我们一般都是通过结合cro ...
- 版本控制比较cvs,svn,git
版本控制比较cvs,svn,git 几个重要概念: 版本库模型(Repository model):描述了多个源码版本库副本间的关系,有客户端/服务器和分布式两种模式.在客户端/服务器模式下,每一用户 ...
- git & scp
git & scp command : git & scp git git 提交 git checkout/pull =====[在提交前校验远程是否有冲突] git add [< ...
- SVN Git 设置忽略目录 大全
eclipse中SVN设置 用svn控制版本,svn本身是不会识别哪些该传,哪些不该传,这就导致有些关于路径的东西(比如拓展jar的路径)也被上传了,而当别人下载后,那个路径对于这个人可能完全不存在, ...
- svn git协同管理
项目开发过程中总有一些奇奇怪怪的需求出现. 我们的项目管理是使用SVN的,用SVN是历史原因,无法整个项目向Git切换.由于我需要管理SVN,做一些代码合并工作.每次合并都会遇到SVN代码需要对比查看 ...
- centos linux 系统日常管理4 scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法 第十七节课
centos linux 系统日常管理4 scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法 第十七节课 rsync可以增量同步,scp不行 ...
- 版本控制— SVN & git
版本控制—— SVN & GIT 提问 什么是版本控制? 是能够一直监视代码文件的变更,并存储这些文件以便将来引用的一种机制(软件) 为什么要使用版本控制? (1)记录哪个开发人员做了变更 ( ...
随机推荐
- sunstudio 12.3 on solaris 10
#include <stdio.h> #include <stdlib.h> #define RPT 10000000 int main() { int i=1; for( i ...
- shader 4 杂 一些和函数名词、数据结构
Normal: 法线 Normao mapping: 法线贴图 Lighting mapping: 光照贴图 Bump mapping: 凹凸贴图:模拟粗糙外表面的技术. FX-Water ...
- C#托管堆对象实例包含什么
每个托管堆上的对象实例除了包含本身的值外,还包括:○ Type Object Ponter: 指向Type对象实例.如果是同类型的对象实例,就指向同一个Type对象实例.○ Sync Block In ...
- C#程序集系列12,C#编译器和CLR如何找寻程序集
本篇体验C#编译器和CLR运行时如何查找程序集,并自定义CLR运行时查找程序集的方式. □ C#编译器和CLR运行时如何查找程序集 C#编译器在哪里?--在C:\Windows\Microsoft.N ...
- 自定义MVC视图引擎ViewEngine 创建Model的专属视图
MVC内置的视图引擎有WebForm view engine和Razor view engine,当然也可以自定义视图引擎ViewEngine.本文想针对某个Model,自定义该Model的专属视图. ...
- dubbo白名单通过filter,spring web通过拦截器或者filter即可
在开发中,有时候需要限制访问的权限,白名单就是一种方法.对于Java Web应用,Spring的拦截器可以拦截Web接口的调用:而对于dubbo接口,Spring的拦截器就不管用了. dubbo提供了 ...
- 页面中基于JSTL标签调用函数--之${fn:}内置函数
调用这样一个头文件<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions " ...
- 莫比乌斯函数&莫比乌斯反演
莫比乌斯函数:http://wenku.baidu.com/view/fbec9c63ba1aa8114431d9ac.html Orz PoPoQQQ
- iOS:转载:UIControl的使用
主要功能: UIContol(控件是所有控件的基类 如:(UIButton)按钮主要用于与用户交互,通常情况下我们不会直接使用UIControl,而是子类化它. 常用属性: BOOL enabled ...
- 游戏服务器框架:Leaf/go
Leaf 是一个使用 Go 语言开发的开源游戏服务器框架,注重运行效率并追求极致的开发效率.Leaf 适用于几乎所有的游戏类型.其主要的特性: 良好的使用体验.Leaf 总是尽可能的提供简洁和易用的接 ...