ubuntu初步

shell命令Bash型

自动补全tab

强制结束ctrl+c

命令行语法:命令名_[选项]_参数_参数...[ ]表可省略

选项格式:--全称,-缩写或合并,选项可叠加,选项_选项

通配符:?(代表一个字符),*(代表多个字符),[ ](字符范围)

标准输入输出cat--从键盘到屏幕,ctrl+c结束输入

重定向:cat < ~/test0.txt,复制内容cat < test0.txt > test1.txt(用>>则添加内容)

管道:

 

 cat > test0.txt//输入至txt
 h 4
 h 3
 h 5
 h 2
 h 1
 cat < test0.txt | sort > test1.txt//排序
 cat < test1.txt

  

 

 

posted @ 2014-09-25 21:31  engineering  阅读(155)  评论(0编辑  收藏  举报