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