View Source Toolshed (toolshed v0.2.26)
Making the IEx console friendlier one command at a time
To use the helpers, run:
iex> use Toolshed
Add this to your .iex.exs
to load automatically.
The following is a list of helpers:
cat/1
- print out a filecmd/1
- run a system command and print the outputdate/0
- print out the current date and timedmesg/0
- print kernel messages (Nerves-only)exit/0
- exit out of an IEx sessionfw_validate/0
- marks the current image as valid (check Nerves system if supported)grep/2
- print out lines that match a regular expressionhex/1
- print a number as hexhistory/0
- print out the IEx shell historyhttpget/2
- print or download the results of a HTTP GET requesthostname/0
- print our hostnameifconfig/0
- print info on network interfacesload_term!/2
- load a term that was saved bysave_term/2
log_attach/1
- send log messages to the current group leaderlog_detach/0
- stop sending log messages to the current group leaderlsof/0
- print out open file handles by OS processlsmod/0
- print out what kernel modules have been loaded (Nerves-only)lsusb/0
- print info on USB devicesmulticast_addresses/0
- print out all multicast addressesnslookup/1
- query DNS to find an IP addressping/2
- ping a remote host (but use TCP instead of ICMP)qr_encode/1
- create a QR code (requires networking)reboot/0
- reboots gracefully (Nerves-only)reboot!/0
- reboots immediately (Nerves-only)save_value/2
- save a value to a file as Elixir terms (uses inspect)save_term!/2
- save a term as a binarytop/2
- list out the top processestping/2
- check if a host can be reached (like ping, but uses TCP)tree/1
- pretty print a directory treeuptime/0
- print out the current Erlang VM uptimeuname/0
- print information about the running system (Nerves-only)weather/0
- get the local weather (requires networking)
Link to this section Summary
Functions
Run a command and return the exit code. This function is intended to be run interactively.
Inspect a value with all integers printed out in hex. This is useful for one-off hex conversions. If you're doing a lot of work that requires hexadecimal output, you should consider running
Link to this section Functions
Specs
Run a command and return the exit code. This function is intended to be run interactively.
Specs
Inspect a value with all integers printed out in hex. This is useful for one-off hex conversions. If you're doing a lot of work that requires hexadecimal output, you should consider running:
IEx.configure(inspect: [base: :hex])
The drawback of doing the above is that strings print out as hex binaries.