Results 1 to 4 of 4

Thread: Bash commands: man pages

  1. #1
    Join Date
    Jul 2014
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question Bash commands: man pages

    Hi everyone,

    I have recently been learning to write bash scripts. In one of the script, I wanted to ask the user to type in some info. To do this, I used the read command.

    Then, to know more about the read command, I typed, in the terminal:
    Code:
    man read
    I found out that the read command in the man pages has nothing to do with the one I used in my bash script. Now my question is this: is there a way to see the man pages of the read command I use in my bash scripts (or any other bash commands)?

    Thanks a lot.

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Bash commands: man pages

    Since 'read' is a shell built-in, you need to look in the man page for bash itself
    Code:
    man bash
    or use the built-in help function from within the shell

    Code:
    help read

  3. #3
    Join Date
    Dec 2007
    Beans
    12,521

    Re: Bash commands: man pages

    And you may find this a bit more friendly than the man pages: mywiki.wooledge.org/BashGuide

  4. #4
    Join Date
    Jul 2014
    Location
    Canada
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Bash commands: man pages

    Quote Originally Posted by steeldriver View Post
    Since 'read' is a shell built-in, you need to look in the man page for bash itself
    Tnak you very much!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •