How to view the system's built-in shell commands and help information

Source: Internet
Author: User
Tags builtin

1. Open the terminal and enter the help command to see a list of the built-in shell commands for the system's default shell (usually bash):

[[Email protected] ~]$ help GNU bash, version4.1.2(1)-release (x86_64-redhat-linux-GNU)  These shell commands is defined internally. Type ' Help'To see the This list.Type ' Help name ''To find out more about the function ' name'. Use ' Info bash'To find out more about the shell in general .Use ' Man-k'or ' info'To find outMore on commands notinch  Thislist. A Star (*) next to a name means that command isdisabled. Job_spec [&] history [-c] [-D offset] [n] or hist>((expression))ifCOMMANDS; Then COMMANDS; [Elif c>. FileName [arguments] jobs [-LNPRS] [Jobspec ...] or jobs >: Kill [-S Sigspec | -N Signum | -sigs>[arg ...] Let Arg [arg ...] [[expression]] local [option] name[=value] ... alias [-P] [name[=value] ...]                       logout [n] bg [job_spec ...] Mapfile [-N Count] [-O origin] [-s c>bind [-lpvspvs] [-M keymap] [-F filen> popd [-n] [+n |-N] Break[n] printf [-Vvar] format [arguments] builtin [Shell-builtin [arg ...] pushd [-n] [+n |-n |dir] caller [expr] pwd [-LP] CaseWordinch[PATTERN [| PATTERN] ...) > read [-ers] [-a array] [-D Delim] [->CD [-l|-p] [dir] Readarray [-N Count] [-O origin] [-s>command [-PVV] command [arg ...]ReadOnly[-AF] [Name[=value] ...] Or>

2. If you are interested in a shell command, you can also use the Help command to view specific command details:

[Email protected] ~]$ help FGFG:FG [Job_spec]    Move job to the foreground.         inch the foreground, making it the current    job.    is not present, the shell'snotionof the is      used.        Exit Status:    inif

3. To learn about the use of the alias command, you can use Help alias to view:

[[Email protected] ~]$ help Aliasalias:alias [-P] [name[=value] ...]        Define or display aliases. Without arguments, ' Alias'prints the list of aliases in the reusableForm ' Alias Name=value'On standard output.Otherwise, an alias isDefined forEach NAME whose VALUE isgiven. A Trailing SpaceinchVALUE causes the next word to bechecked  foralias Substitution when the alias isexpanded. Options:-P Print all defined aliasesincha reusable format Exit Status:alias returnstrueUnless a NAME isSupplied forwhich no alias has been defined. [[Email protected]~]$

How to view the system's built-in shell commands and help information

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.