shell交互

在erlangshell中可使用的函数

b()

Printsthecurrentvariablebindings.

f()

Removesallvariablebindings.

f(X)

RemovesthebindingofvariableX.

h()

Printsthehistorylist.

c(File)

Evaluatesshell_default:c(File).ThiscompilesandloadscodeinFileandpurgesoldversionsofcode

rd(RecordName,RecordDefinition)定义record

rd(myrecord,{id,name}.

Recorde=#myrecord{id=1,name="catdoc"}.

rl()

Printsallrecorddefinitions.

Thecmoduleenablesuserstoentertheshortformofsomecommonlyusedcommands.

pwd()--->file:get_cwd().获取当前路径

cd("catdoc").改变当前路径

m()->okDisplaysinformationabouttheloadedmodules

m(ModuleName)显示模块的信息

memory()显示内存信息

regs()->ok

nregs()->okregs/0displaysinformationaboutallregisteredprocesses.

相关推荐