Bash Shell's built-in commands and reserved words

Reprinted from: http://blog.chinaunix.net/uid-25880122-id-2941630.html

command

meaning

!

Reserved words, logical NOT

:

Do not do anything, only parameter expansion

.

Read the file and execute it in the shell

alias

Set command or command alias

bg

The job runs in the background

bind

The key sequence readline function or macro bundle

break

Reserved words, out for, while, until, select the cycle

builtin

Invoke the command built-in command format, and disable the function of the same name. Or command the same name extensions

case

Reserved word, multiple choice

cd

Switch the current working directory

command

Find out the built-in and external commands; look for built-in command rather than a function of the same name

continue

Reserved words, to reach the next for, while, until, select the cycle

declare

Declare variables define the variable properties

dirs

Displays the current list of stored

disown

The job is removed from the list

do

Part of a reserved word, for, while, until, select the cycle

done

Part of a reserved word, for, while, until, select the cycle

echo

Print parameters

elif

Part of reserved words, if the structure of

else

Part of reserved words, if the structure of

enable

Open and close the built-in command

esac

Part of reserved words, case of

eval

The process parameters as command again again

exec

Substituted shell as a shell in a specific program or change I / O

exit

Exit shell

export

Declaring a variable as environment variable

fc

Run with command history

fg

The job runs in the background

be

Part of reserved words, if the cycle

for

Part of reserved words, for loop

function

The definition of a function

getops

Handling command-line options

hash

Record command and specify the path name

help

Built-in command to display help information

history

Display historical information

if

Part of reserved words, if the cycle

in

Part of a reserved word, case, for, select the cycle

jobs

Display running in the background job

kill

Transmit signals to processes

let

The variable perform arithmetic operations

local

Define local variables

logout

Log off from the Shell

popd

Pops the directory from the directory stack

pushd

The directory pushed onto the stack

pwd

Displays the current working directory

read

Reads a line from the standard input

readonly

The variable is defined as read-only

return

Return from the function or script

select

保留字,生成菜单

set

设置Shell选项

shift

变换命令行参数

suspend

终止Shell的执行

test

评估条件表达式

then

保留字,if结构的一部分

time

保留字,输出统计出来的命令执行时间,其输出格式由TIMEFORMAT变量来控制

times

针对Shell及其子Shell,显示用户和系统CPU的时间和

trap

设置扑捉程序

type

确定命令的源

typeset

声明变量,定义变量属性,与declare等价

ulimit

设置和显示进程占用的资源限制

umask

设置和显示文件权限码

unalias

取消别名定义

unset

取消变量或函数定义

until

保留字,一种循环结构

wait

等待后台作业完成

while

保留字,一种循环结构

Guess you like

Origin www.cnblogs.com/yuhuang/p/12654758.html