Chinaunix首页 | 论坛 | 博客
  • 博客访问: 255848
  • 博文数量: 54
  • 博客积分: 1761
  • 博客等级: 上尉
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-17 23:30
文章分类

全部博文(54)

文章存档

2013年(4)

2012年(7)

2011年(15)

2010年(28)

分类: LINUX

2011-02-24 14:53:47

ls
-A -l -h --color=auto
h human readble size
S sort by size
t sort by change time


bash
when we use ctrl u or w to truncate some part of the input on line, actually, we can use ctrl y to past back. this is extremely useful when you typed:
find ./ *.csv
ctrl w  and -name ctrl y .
you can get
find ./ -name *.csv

cat -vte filename
print special characters for tab and end-of-line.


python tab and space
when you editing python source code, sometimes, you would input both tab and space as the indent symbols. in order to make the unique . you can rely on a command
expand -t 4 ok.py
or expand ok.py


watch a command
watch a commmand to execute many times
watch -n 20 df -h
watch -n 5 --differences df -h


edit remote file with vim
vim scp://remoteuser@server.tld//path/to/document
this command can save you some energy to co files and change content


阅读(3243) | 评论(5) | 转发(0) |
给主人留下些什么吧!~~

riribi2011-02-26 13:33:27

vermouth2011-02-25 13:37:38

加油,继续!

woai1222011-02-25 13:29:21

记录下来,会用到的

hironics2011-02-25 10:44:55

vermouth: ^w ^y 不错!.....
This is only a  draft post, I haven't completed the writing yet. So please wait for a few more days.

vermouth2011-02-24 17:28:03

^w ^y 不错!