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)记录哪个开发人员做了变更 ( ...
随机推荐
- inux下查看.so和可执行文件是否debug编译的方法
命令 readelf -S libxxx.so |grep debug 如果有打印信息就是debug,否则是release.
- IP地址便捷修改器 V3.5 绿色版
IP地址便捷修改器 V3.5 绿色版 http://www.downxia.com/downinfo/47786.html#softdown
- linux下如何挂接(mount)光盘镜像文件、移动硬盘、U盘、Windows网络共享和NFS网络共享
首先,介绍一下挂接(mount)命令的使用方法,mount命令参数非常多,这里主要讲一下今天我们要用到的. 命令格式: mount [-t vfstype] [-o options ...
- MFC绘制直方图和饼图
转载原文: Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE /* Style Definitions */ table.MsoNorma ...
- [Oracle] Insert All的妙用
无条件的插入 Oracle中的insert all是指把同一批数据插入到不同的表中,假如如今有个需求:把t表中的数据分别插入t1,t2,假设你不知道insert all,你可能会使用insert插入2 ...
- C预编译, 预处理, C/C++头文件, 编译控制,
在所有的预处理指令中,#Pragma 指令可能是最复杂的了,它的作用是设定编译器的状态或者是指示编译器完成一些特定的动作.#pragma指令对每个编译器给出了一个方法,在保持与C和C++语言完全兼容的 ...
- 第二章 Java浮点数精确计算
1.实际意义 在实际开发中,如果需要进行float或double的精确计算(尤其是财务计算),直接使用float或double是不行的(具体的例子看下边的代码的main方法的测试结果),需要使用Big ...
- Evaluate Reverse Polish Notation leetcode java
题目: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are + ...
- AngularJS driective 封装 自动滚动插件
1.ui-smooth-scroll.js文件内容 angular.module('app') .directive('uiSmoothScroll', ['$location', '$anchorS ...
- css表格单元格中的长文本的显示问题
自动换行问题,正常字符的换行是比较合理的,而连续的数字和英文字符常常将容器撑大,挺让人头疼,下面介绍的是CSS如何实现换行的方法 对于div,p等块级元素 正常文字的换行(亚洲文字和非亚洲文字)元素拥 ...