加入收藏 | 设为首页 | 会员中心 | 我要投稿 辽源站长网 (https://www.0437zz.com/)- 云专线、云连接、智能数据、边缘计算、数据安全!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

获取有关Linux shell内置命令的帮助

发布时间:2019-07-30 02:19:11 所属栏目:Windows 来源:Sandra Henry-stocker
导读:Linux 内置命令属于用户 shell 的一部分,本文将告诉你如何识别它们并获取使用它们的帮助。 Linux 内置命令是内置于 shell 中的命令,很像内置于墙中的书架。与标准 Linux 命令存储在 /usr/bin 中的方式不同,你不会找到它们的独立文件,你可能使用过相当

你可以通过向 help 命令提供你感兴趣的内置命令名称来获取关于它们的更多信息,例如 help dirs

  1. $ help dirs
  2. dirs: dirs [-clpv] [+N] [-N]
  3. Display directory stack.
  4.  
  5. Display the list of currently remembered directories. Directories
  6. find their way onto the list with the `pushd' command; you can get
  7. back up through the list with the `popd' command.
  8.  
  9. Options:
  10. -c clear the directory stack by deleting all of the elements
  11. -l do not print tilde-prefixed versions of directories relative
  12. to your home directory
  13. -p print the directory stack with one entry per line
  14. -v print the directory stack with one entry per line prefixed
  15. with its position in the stack
  16.  
  17. Arguments:
  18. +N Displays the Nth entry counting from the left of the list
  19. shown by dirs when invoked without options, starting with
  20. zero.
  21.  
  22. -N Displays the Nth entry counting from the right of the list
  23. shown by dirs when invoked without options, starting with
  24. zero.
  25.  
  26. Exit Status:
  27. Returns success unless an invalid option is supplied or an error occurs.

(编辑:辽源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读