linux 命令2
来源:互联网 发布:地形图矢量化软件 编辑:程序博客网 时间:2024/05/21 02:48
1. grep
grep -in "strFormula\ =*" log.out | more #-i:不分区大小写 n:显示匹配行和行号
more : 显示内容,不过以一页一页地显示
3. 命令别名:
在~.bashrc写下:
alias build='cd /data/loginsight/svn/build'
alias out='cd /data/loginsight/svn/SAC100/trunk/Src/SAC-loginsight/CMAKE/Output'
alias dirmake='cd /data/loginsight/svn/SAC100/trunk/Src/SAC-loginsight/CMAKE'
alias dir='cat ~/.bashrc'
alias src='cd /data/loginsight/svn/SAC100/trunk/Src/SAC-loginsight/Src'
然后执行source ~.bahsrc,然后在控制台下输入out就自动执行cd /data/loginsight/svn/SAC100/trunk/Src/SAC-loginsight/CMAKE/Output了。
4. scp:
对拷文件夹 (包括文件夹本身)
scp -r /home/wwwroot/www/charts/util root@192.168.1.65:/home/wwwroot/limesurvey_back/scp
对拷文件夹下所有文件 (不包括文件夹本身)
scp /home/wwwroot/www/charts/util/* root@192.168.1.65:/home/wwwroot/limesurvey_back/scp
对拷文件并重命名
scp /home/wwwroot/www/charts/util/a.txt root@192.168.1.65:/home/wwwroot/limesurvey_back/scp/b.text
- linux命令(2):cd命令
- Linux 命令2-cd命令
- linux命令2--chgrp命令
- Linux命令(2):nano命令
- Linux命令2 (Linux ls 命令)
- Linux--find命令2
- Linux 文件命令2
- linux find 命令 2
- linux命令小记2
- Linux----2----基本命令
- linux命令2
- linux命令(2)
- linux-基本命令2
- linux命令2
- linux命令(2)
- linux命令2
- Linux 命令 2
- Linux命令(2)
- codeforce#378C. Epidemic in Monstropolis(模拟+分块+树状数组)
- springMVC 拦截器的两种实现方式
- php面向对象基础:1.类和方法
- NOIP 2011 表达式的值
- Android6.0_r9 CTS 测试 一
- linux 命令2
- [我所知道的BIOS]->[Remaining POST Tasks] 11
- 运算符优先级
- Linux 内核 Starting kernel ... 串口无输出问题归纳总结
- tolua学习资料汇总贴
- 【LeetCode】3Sum,3Sum Closest 题解报告
- mysql merge
- Quartz配合Spring使用的一种方法
- NOIP 2005 等价表达式