Home  >  Q&A  >  body text

linux中怎么查看shell内建命令的用法?

在linux中有一些命令是shell的内建命令,比如 cd、umask、set、declare等,这些命令使用man帮助是没法查看的,那我该如何查看其使用方法呢?

怪我咯怪我咯2742 days ago821

reply all(4)I'll reply

  • 阿神

    阿神2017-04-17 15:19:15

    These commands all have man files. Has your distribution cut these commands out? If the shell you are using is bash, yes.
    If not, try help cmd, such as help cd, help set

    reply
    0
  • PHPz

    PHPz2017-04-17 15:19:15

    npm install -g tldr

    means too long don't read

    reply
    0
  • 黄舟

    黄舟2017-04-17 15:19:15

    man bash and type / to search

    reply
    0
  • PHPz

    PHPz2017-04-17 15:19:15

    buildin, roughly this command, you can view all built-in commands.

    reply
    0
  • Cancelreply