免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5688 | 回复: 1
打印 上一主题 下一主题

请教alias的用法! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-06 15:41 |只看该作者 |倒序浏览
我准备建立个别名:
alias psappl=\'ps -ef|grep appltest\'
当我敲入psappl的时候,提示找不到.
别名的用法到底怎么用啊,请帮助.

论坛徽章:
0
2 [报告]
发表于 2006-06-06 21:12 |只看该作者
# alias l=\'ls -l\'
# l
total 1717
drwx------   2 root     other        512  1月  9 19:12 Mail
drwxr-xr-x   2 root     root         512  2月 22  2005 TT_DB
drwxr-xr-x   5 root     other        512  5月 25 16:59 a
lrwxrwxrwx   1 root     root           9  2月 22  2005 bin -> ./usr/bin
drwxr-xr-x   3 root     root         512  4月  6 14:19 cdrom
-rw-------   1 root     root      680488  1月 14 12:45 core
drwxr-xr-x   2 oracle   oracle       512  2月 14 14:10 data2
drwxr-xr-x  15 root     sys         4096  5月 25 16:47 dev
drwxr-xr-x   5 root     sys          512  2月 22  2005 devices
drwxr-xr-x   2 root     other        512  4月  6 13:10 ed
drwxr-xr-x  59 root     sys         4096  6月  1 14:03 etc
drwxr-xr-x   3 root     sys          512  2月 22  2005 export
-rw-r--r--   1 root     other        420 11月 18  2005 format.dat
dr-xr-xr-x   1 root     root           1  5月 25 16:47 home
drwxr-xr-x   3 oracle   oracle       512  8月 30  2005 home3
-rwxrwxrwx   1 root     other         11 10月 13  2005 jia
drwxr-xr-x  10 root     sys          512  2月 22  2005 kernel
lrwxrwxrwx   1 root     root           9  2月 22  2005 lib -> ./usr/lib
drwx------   2 root     root        8192  2月 22  2005 lost+found
drwxr-xr-x   4 root     sys          512  9月 28  2005 mnt
dr-xr-xr-x   1 root     root           1  5月 25 16:47 net
drwx------   2 root     other        512  7月 27  2005 nsmail
drwxrwxr-x   7 root     sys          512  5月 10  2005 opt
drwxr-xr-x   4 root     other        512  3月 16 10:43 p
drwxr-xr-x  30 root     sys         1024  2月 22  2005 platform
dr-xr-xr-x  54 root     root      125632  6月  6 21:07 proc
-rw-r--r--   1 root     other        214  4月  1 11:26 sample
drwxr-xr-x   2 root     sys         1024  2月 22  2005 sbin
drwxr-xr-x   3 root     other        512  2月  7 14:32 test
drwxrwxrwt   5 root     sys          249  6月  6 11:03 tmp
drwxrwxr-x  43 root     sys         1024  4月  6 13:42 usr
drwxr-xr-x  38 root     sys         1024  4月  6 14:16 var
-rw-r--r--   1 root     other       5402  9月 13  2005 vmstat.out
dr-xr-xr-x   6 root     root         512  6月  1 14:03 vol
dr-xr-xr-x   1 root     root           1  5月 25 16:47 xfn
我的怎么没问题哪,呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP