码迷,mamicode.com
首页 > 其他好文 > 详细

Erlang命令行提示符汇总

时间:2015-09-13 12:06:50      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

b()        -- display all variable bindings

显示所有的绑定的变量

e(N)       -- repeat the expression in query <N>

f()        -- forget all variable bindings

忘记所有已绑定的变量

f(X)       -- forget the binding of variable X

忘记变量X的绑定

h()        -- history

显示历史

history(N) -- set how many previous commands to keep

设置保留N条之前的历史 控制h()的显示数量

results(N) -- set how many previous command results to keep

catch_exception(B) -- how exceptions are handled

v(N)       -- use the value of query <N>

rd(R,D)    -- define a record

rf()       -- remove all record information

移除所有的记录信息

rf(R)      -- remove record information about R

移除R的记录信息

rl()       -- display all record information

显示所有的记录信息

rl(R)      -- display record information about R

显示R的记录信息

rp(Term)   -- display Term using the shell‘s record information

rr(File)   -- read record information from File (wildcards allowed)

rr(F,R)    -- read selected record information from file(s)

rr(F,R,O)  -- read selected record information with options

** commands in module c **

bt(Pid)    -- stack backtrace for a process

c(File)    -- compile and load code in <File>

编译和加载文件,最新的建议使用erlc

cd(Dir)    -- change working directory

改变工作目录

flush()    -- flush any messages sent to the shell

help()     -- help info

帮助信息

i()        -- information about the system

显示系统的信息

ni()       -- information about the networked system

显示系统的网络信息

i(X,Y,Z)   -- information about pid <X,Y,Z>

关于pid<X,Y,Z>的信息

l(Module)  -- load or reload module

加载或重新载入模块

lc([File]) -- compile a list of Erlang modules

ls()       -- list files in the current directory

列出当前目录

ls(Dir)    -- list files in directory <Dir>

m()        -- which modules are loaded

查看已经载入的模块

m(Mod)     -- information about module <Mod>

显示模块Mod的信息

memory()   -- memory allocation information

已分配的内存信息

memory(T)  -- memory allocation information of type <T>

nc(File)   -- compile and load code in <File> on all nodes

nl(Module) -- load module on all nodes

pid(X,Y,Z) -- convert X,Y,Z to a Pid

pwd()      -- print working directory

打印当前目录

q()        -- quit - shorthand for init:stop()

退出.init:stop()的快捷方式

regs()     -- information about registered processes

显示所有已注册的进程

nregs()    -- information about all registered processes

uptime()   -- print node uptime

xm(M)      -- cross reference check a module

y(File)    -- generate a Yecc parser

** commands in module i (interpreter interface) **

ih()       -- print help for the i module

打印i模块的帮助信息

Erlang命令行提示符汇总

标签:

原文地址:http://my.oschina.net/zlp5201/blog/505457

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!