linux which whatis whereis 查看python命令的信息

举报
千江有水千江月 发表于 2021/10/04 15:03:18 2021/10/04
5.8k+ 0 0
【摘要】 ECS信息规格:2vCPUs | 4GiB | kc1.large.2镜像:openEuler 20.03 64bit with ARM | 公共镜像  linux which whatis whereis 查看python命令的信息which 查找指令的绝对路径# which python/usr/bin/pythonstat 查看文件具体信息# stat /usr/bin/python...

ECS信息

  • 规格:2vCPUs | 4GiB | kc1.large.2
  • 镜像:openEuler 20.03 64bit with ARM | 公共镜像

linux which whatis whereis 查看python命令的信息

  • which 查找指令的绝对路径
# which python
/usr/bin/python

  • stat 查看文件具体信息
# stat /usr/bin/python
  File: /usr/bin/python -> python2
  Size: 7         	Blocks: 0          IO Block: 4096   symbolic link
Device: fd02h/64770d	Inode: 2240627     Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2021-10-04 14:49:25.651799849 +0800
Modify: 2020-03-24 03:08:29.000000000 +0800
Change: 2020-05-18 10:35:42.132000000 +0800
 Birth: 2020-05-18 10:35:42.132000000 +0800
  • whatis 查看简短的帮助信息
# whatis python
python (1)           - an interpreted, interactive, object-oriented programming language

  • whereis 査找二进制命令、源文件和帮助文档的命令。
# whereis python
python: /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python2.7-debug-config /usr/bin/python2.7-debug /usr/bin/python3.7 /usr/bin/python /usr/bin/python3.7m /usr/lib/python2.7 /usr/lib/python3.7 /usr/lib64/python2.7 /usr/lib64/python3.7 /usr/local/lib/python3.7 /usr/include/python2.7 /usr/include/python2.7-debug /usr/include/python3.7m /usr/share/man/man1/python.1.gz

# python
Python 2.7.16 (default, Mar 23 2020, 19:07:51) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

学习资料

欢迎各位同学一起来交流学习心得^_^

【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

作者其他文章

评论(0

抱歉,系统识别当前为高风险访问,暂不支持该操作

    全部回复

    上滑加载中

    设置昵称

    在此一键设置昵称,即可参与社区互动!

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。