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 查日志


grep 查找内容 日志文件

 -A50 向下50行

-B50 向上50行

-wc 统计

-E 查找匹配一组数据


tail -f 

 grep -o 'cid=>[^,]*' tmp/dx_event_async_04121842.log |sort |uniq

grep --color -E 'A|B|C' file.log

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的更多相关文章

  1. 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) 收藏 举 ...

  2. linux下不同服务器间数据传输(rcp,scp,rsync,ftp,sftp,lftp,wget,curl)

    因为工作原因,需要经常在不同的服务器见进行文件传输,特别是大文件的传输,因此对linux下不同服务器间数据传输命令和工具进行了研究和总结.主要是rcp,scp,rsync,ftp,sftp,lftp, ...

  3. [转]通过rsync+inotify-tools+ssh实现触发式远程实时同步

    文件的同步镜像在很多地方都需要用到,因此rsync这款免费软件得到了广泛的应用,包括在Windows平台上,都已经有了支持rsync的“cwRsyncServer”. 但是,我们一般都是通过结合cro ...

  4. 版本控制比较cvs,svn,git

    版本控制比较cvs,svn,git 几个重要概念: 版本库模型(Repository model):描述了多个源码版本库副本间的关系,有客户端/服务器和分布式两种模式.在客户端/服务器模式下,每一用户 ...

  5. git & scp

    git & scp command : git & scp git git 提交 git checkout/pull =====[在提交前校验远程是否有冲突] git add [< ...

  6. SVN Git 设置忽略目录 大全

    eclipse中SVN设置 用svn控制版本,svn本身是不会识别哪些该传,哪些不该传,这就导致有些关于路径的东西(比如拓展jar的路径)也被上传了,而当别人下载后,那个路径对于这个人可能完全不存在, ...

  7. svn git协同管理

    项目开发过程中总有一些奇奇怪怪的需求出现. 我们的项目管理是使用SVN的,用SVN是历史原因,无法整个项目向Git切换.由于我需要管理SVN,做一些代码合并工作.每次合并都会遇到SVN代码需要对比查看 ...

  8. centos linux 系统日常管理4 scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法 第十七节课

    centos linux 系统日常管理4  scp,rsync,md5sum,sha1sum,strace ,find Rsync 常见错误及解决方法  第十七节课 rsync可以增量同步,scp不行 ...

  9. 版本控制— SVN & git

    版本控制—— SVN & GIT 提问 什么是版本控制? 是能够一直监视代码文件的变更,并存储这些文件以便将来引用的一种机制(软件) 为什么要使用版本控制? (1)记录哪个开发人员做了变更 ( ...

随机推荐

  1. HDU 2222 Keywords Search 【AC自动机模板】

    询问有多少个模式串出现在了文本串里面.将模式串插入Trie树中,然后跑一边AC自动机统计一下就哦了. 献上一份模板. #include <cstdio> #include <cstr ...

  2. Phone重绘机制drawRect 转

    Phone重绘机制drawRect 如何使用iPhone进行绘图.重绘操作iPhone的绘图操作是在UIView类的drawRect方法中完成的,所以如果我们要想在一个UIView中绘图,需要写一个扩 ...

  3. arcgis python添加几何属性

    import arcpy import numpy import math def AddGeometryAttributes(fc, geomProperties, lUnit, aUnit, cs ...

  4. Ext.QuickTips.init()的使用

    在extJS的例子中,大部分都在程序第一行使用了如下语句:Ext.QuickTips.init();但是QuickTips的用处是什么呢?我们看一段最简单的代码: <html> <h ...

  5. [翻译] 极具动感的 FRDLivelyButton

    FRDLivelyButton https://github.com/sebastienwindal/FRDLivelyButton FRDLivelyButton is a simple UIBut ...

  6. 0, \0, NULL

    字符串.字符数组输入.输出与'\0'的问题 原创首发,欢迎转载! 作者按 字符串.字符数组以"%s"格式输入时,以遇到'空格'为这个字符串输入结束. 字符串.字符数组以" ...

  7. Go的安装和使用/卸载/升级、安装指定版本

    mac: 1.brew install go默认安装最新的,更新go也是这条命令,建议这个方法,省事 2.从官网https://golang.org/dl/下载pkg包安装,官方说1.12是最后一个支 ...

  8. Android - 错误:&quot;No resource found that matches the given name android:Theme.Material&quot;

    Android - 错误:"No resource found that matches the given name android:Theme.Material" 本文地址:  ...

  9. [4] 圆锥(Cone)图形的生成算法

    顶点数据的生成 bool YfBuildConeVertices ( Yreal radius, Yreal height, Yuint slices, YeOriginPose originPose ...

  10. Merge Two Sorted Lists leetcode java

    题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splici ...