c
MODULE
MODULE SUMMARY
DESCRIPTION
The c module enables users to enter the short form of some commonly used commands.
These functions are are intended for interactive use in the Erlang shell only. The module prefix may be omitted.
EXPORTS
Types:
Stack backtrace for a process. Equivalent to erlang:process_display(Pid, backtrace).
c(File) -> {ok, Module} | error
c(File, Options) -> {ok, Module} | error
c/1,2 compiles and then purges and loads the code for a file. Options defaults to []. Compilation is equivalent to:
compile:file(File, Options ++ [report_errors, report_warnings])
Note that purging the code means that any processes lingering in old code for the module are killed without warning. See code/3 for more information.
Types:
Changes working directory to Dir, which may be a relative name, and then prints the name of the new working directory.
2> cd("../erlang").
/home/ron/erlang
Flushes any messages sent to the shell.
Displays help information: all valid shell internal commands, and commands in this module.
i/0 displays information about the system, listing information about all processes. ni/0 does the same, but for all nodes the network.
i(X, Y, Z) -> [{atom(), term()}]
Types:
Displays information about a process, Equivalent to process_info(pid(X, Y, Z)), but location transparent.
l(Module) -> code:load_ret()
Types:
Purges and loads, or reloads, a module by calling code:purge(Module) followed by code:load_file(Module).
Note that purging the code means that any processes lingering in old code for the module are killed without warning. See code/3 for more information.
Compiles a list of files by calling compile:file(File, [report_errors, report_warnings]) for each File in Files.
Lists files in the current directory.
Types:
Lists files in directory Dir or, if Dir is a file, only list it.
Displays information about the loaded modules, including the files from which they have been loaded.
Types:
Displays information about Module.
Types:
Memory allocation information. Equivalent to erlang:memory/0 .
memory(Type) -> Size
memory(Types) -> [{Type, Size}]
Types:
Memory allocation information. Equivalent to erlang:memory/1 .
nc(File) -> {ok, Module} | error
nc(File, Options) -> {ok, Module} | error
Compiles and then loads the code for a file on all nodes. Options defaults to []. Compilation is equivalent to:
compile:file(File, Options ++ [report_errors, report_warnings])
Types:
Loads Module on all nodes.
Types:
Converts X, Y, Z to the pid <X.Y.Z>. This function should only be used when debugging.
Prints the name of the working directory.
This function is shorthand for init:stop(), that is, it causes the node to stop in a controlled fashion.
regs/0 displays information about all registered processes. nregs/0 does the same, but for all nodes in the network.
Prints the node uptime (as given by erlang:statistics(wall_clock)), in human-readable form.
Types:
This function finds undefined functions, unused functions, and calls to deprecated functions in a module by calling xref:m/1.
Types:
Generates an LALR-1 parser. Equivalent to:
yecc:file(File)
Types:
Generates an LALR-1 parser. Equivalent to:
yecc:file(File, Options)