I'm not a bash script guru, so I need documentation. Here I will show you how to get/install that for RHEL 6.
All the BASH documentation is available via the bash-doc RPM, but it is not located in the RHEL base channel (rhel-x86_64-server-6), but in the RHEL Server Optional channel (rhel-x86_64-server-optional-6).
To add or remove channels from the command line you use the rhn-channel.
rhn-channel --channel=rhel-x86_64-server-optional-6 --add --user=<RHNREG_USERNAME> --password=<RHNREG_PASSWORD>
Now you are ready to install the bash-doc package.
yum install bash-doc
And to list the installed files.
$ rpm -ql bash-doc
...
/usr/share/doc/bash-4.1.2/doc/bashref.pdf
...
And the most interesting file is the BASH Reference Manual, as highlighted above.
No comments:
Post a Comment