免费注册 查看新帖 |

Chinaunix

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

为什么linux没有what命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-02 13:42 |只看该作者 |倒序浏览
因为我在hp-ux和sunos上都可以使用what命令来查看文件版本
在linux上却没有此命令
我用的是ubuntu8.04
一路征程一路笑 该用户已被删除
2 [报告]
发表于 2009-08-02 15:55 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
3 [报告]
发表于 2009-08-02 16:25 |只看该作者
what哪有这个命令?

论坛徽章:
0
4 [报告]
发表于 2009-08-02 23:08 |只看该作者
。。。
楼主,小型机的OS还是和LINUX很大差异的。。。

论坛徽章:
0
5 [报告]
发表于 2009-08-02 23:31 |只看该作者
ubuntu 如果是desktop的发行版的话,很多命令应该是没有装的。。你可以试试装一下或者搜索一下 apt-cache search what

论坛徽章:
0
6 [报告]
发表于 2009-08-03 00:31 |只看该作者
这是系统设定,就像WIN不出LINUX系统一样

论坛徽章:
0
7 [报告]
发表于 2009-08-03 02:09 |只看该作者
原帖由 hgyxb 於 2009-8-2 13:42 發表
因為我在hp-ux和sunos上都可以使用what命令來查看文件版本
在linux上卻沒有此命令
我用的是ubuntu8.04



  1. NAME
  2.      what - extract SCCS version information from a file

  3. SYNOPSIS
  4.      what [-s] filename...

  5. DESCRIPTION
  6.      The what utility searches each filename for  occurrences  of
  7.      the pattern @(#) that the SCCS get command (see sccs-get(1))
  8.      substitutes for the @(#) ID keyword, and prints what follows
  9.      up to a ", >, NEWLINE, \, or NULL character.

  10. OPTIONS
  11.      The following option is supported:

  12.      -s    Stops after the first occurrence of the pattern.

  13. EXAMPLES
  14.      Example 1 Extracting SCCS version information

  15.      If a C program in file program.c contains

  16.        char sccsid[] = "@(#)identification information";

  17.      and program.c is compiled to yield program.o and a.out,  the
  18.      command:

  19.        example% what program.c program.o a.out

  20.      produces:

  21.      program.c:    identification information

复制代码


腦袋中是沒有這類應對命令~

论坛徽章:
7
天蝎座
日期:2013-08-16 23:19:32丑牛
日期:2014-01-08 09:20:14寅虎
日期:2014-01-11 11:03:44午马
日期:2014-04-28 11:02:40天秤座
日期:2014-05-16 23:24:24摩羯座
日期:2014-07-20 10:46:04卯兔
日期:2014-08-08 15:21:41
8 [报告]
发表于 2009-08-03 11:33 |只看该作者
man what
倒是有的

论坛徽章:
0
9 [报告]
发表于 2009-08-03 22:31 |只看该作者
file不行吗?

论坛徽章:
0
10 [报告]
发表于 2009-08-04 19:49 |只看该作者

回复 #9 emmoblin 的帖子

file 不能看这个文件的版本
what可以看源文件的出荷时间和版本
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP