asysbang

 找回密码
 立即注册
查看: 4715|回复: 0
打印 上一主题 下一主题

工作中用到的命令

[复制链接]

510

主题

2

好友

6311

积分

管理员

Rank: 80Rank: 80Rank: 80Rank: 80Rank: 80

最佳新人 活跃会员 热心会员 推广达人 宣传达人 灌水之王 突出贡献 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-5-16 09:44:45 |只看该作者 |倒序浏览
1、window和linux之间文本格式转换
   
   unix2dos   和  dos2unix


2、挂载服务器到本地路径

     sshfs -o transform_symlinks -o follow_symlinks gli@emma7: /home/ligang/server

写一个rr 放在一个~/tool目录下
3、echo "123456" |sudo -S /home/ligang/work/android-sdk-linux/platform-tools/adb kill-server
     sudo /home/ligang/work/android-sdk-linux/platform-tools/adb devices

写一个jgrep 放在一个~/tool目录下
4、find . -name .repo -prune -o -name .git -prune -o  -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"


5、配置到~/.bashrc中
alias ddd='cd ~/下载'
alias dd='cd ~/桌面'
alias al='adb logcat'
alias ad='adb devices'
alias alc='adb logcat -c'
alias qq='nautilus .'
alias rr='~/tools/restart'
alias jgrep='~/tools/jgrep'
alias av='alc;al -v time |tee ll.txt'

window查看端口
netstat -aon|findstr 5037
wmic process get executablepath , processid |findstr xxx

相关帖子

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

Archiver|手机版|aSys-帮 ( 京ICP备13033689号 )

GMT+8, 2024-7-2 02:35 , Processed in 0.062703 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部