[分享]大家贴一下自己常用,喜欢的 alias 吧 :)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
yhlfh
帖子: 579
注册时间: 2006-09-02 20:42
来自: 东海明珠

#16

帖子 yhlfh » 2007-08-25 11:50

iblicf 写了:human 那个 -h 就行了, alias 多了乱倒是不乱,稍微影响点 terminal 的启动速度
呵呵,写成-human-readable是为了便于理解,一看就懂。
Life is like a box of chocolates, you never know what you're going to get.
头像
yhlfh
帖子: 579
注册时间: 2006-09-02 20:42
来自: 东海明珠

#17

帖子 yhlfh » 2007-08-25 14:56

代码: 全选

alias free='free -m'
这样查看就会以M为单位显示了,看得懂。 :D
Life is like a box of chocolates, you never know what you're going to get.
头像
roylez
帖子: 1928
注册时间: 2005-10-04 10:59
来自: 上海

#18

帖子 roylez » 2007-08-25 20:14

bashrc

alias screen='screen -d -RR'

zshrc

alias grep='grep --color=always'
alias less='less -R'
alias df='df -Th'
alias du='du -h'
del() {mv -vi -- $* ~/.Trash}
alias smth='luit -encoding gbk -- telnet newsmth.org'
alias hkday='luit -encoding big5 -- telnet hkday.net'
弄个dropbox空间来备份文件或者做私人代码服务器
配置:[url]git://github.com/roylez/dotfiles.git[/url]
主页:http://roylez.heroku.com
各种稀奇玩意儿:http://dooloo.info
Conan304
帖子: 299
注册时间: 2006-12-15 16:11
来自: KM

#19

帖子 Conan304 » 2007-08-26 0:38

学习收藏,感谢。
头像
yhlfh
帖子: 579
注册时间: 2006-09-02 20:42
来自: 东海明珠

#20

帖子 yhlfh » 2007-08-26 16:57

代码: 全选

alias cmatrix='cmatrix -lba'
让cmatrix直接就最像电影里的。 :D
Life is like a box of chocolates, you never know what you're going to get.
zhangyujin78
帖子: 202
注册时间: 2007-01-13 22:39
来自: 杭州

#21

帖子 zhangyujin78 » 2007-08-26 22:21

这个不错啊~
奈我何
帖子: 63
注册时间: 2007-06-23 15:47

#22

帖子 奈我何 » 2007-09-14 9:59

alias lt='ls --color=auto -hlt' 按时间排序;
alias ltm='ls --color -hlt | less -R' 按时间排序、分页显示;
alias sub='ls --color -hlp | less -R' 分页显示目录;
alias psg='ps -ef | grep' 直接查某进程:如 psg mplayer

where() { builtin type -a "$@"; } 文件在哪里? 类似which
回复