Difference between revisions of "CraftOS Shell"

From ComputerCraft Wiki
Jump to: navigation, search
(More info for 'shell' and 'monitor' programs)
m
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
== Regular Shell Commands ==
 +
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;">
+
<tr><td colspan="3" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;">
 
[[File:Grid_disk.png|24px]]&nbsp;&nbsp;
 
[[File:Grid_disk.png|24px]]&nbsp;&nbsp;
 
CraftOS Shell Programs
 
CraftOS Shell Programs
 
</td></tr>
 
</td></tr>
<tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Program Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td></tr>
+
<tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Program Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Version Added</td></tr>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-alias">alias</div><tt>alias <alias> <program></tt></td>
+
<div id="cmd-alias">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Maps an alias string to a program.</td></tr>
+
{{API table/row
 +
|[[alias]]<br><tt>alias <alias> <program></tt>
 +
|Maps an alias string to a program.
 +
|1.2
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-apis">apis</div><tt>apis</tt></td>
+
<div id="cmd-apis">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Lists all loaded APIs.</td></tr>
+
{{API table/row
 +
|[[apis]]<br><tt>apis</tt>
 +
|Lists all loaded APIs.
 +
|1.2
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-cd">cd</div><tt>cd <path></tt></td>
+
<div id="cmd-bg">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Changes to the specified directory</td></tr>
+
{{API table/row
 +
|[[bg]]<br><tt>bg <program> <arguments></tt>
 +
|Opens the specified script in a new [[multishell]] tab.
 +
|1.6
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-clear">clear</div><tt>clear</tt></td>
+
<div id="cmd-cd">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Clears the terminal.</td></tr>  
+
{{API table/row
 +
|[[cd]]<br><tt>cd <path></tt>
 +
|Changes to the specified directory
 +
|
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-copy">copy</div><tt>copy <source> <destination></tt></td>
+
<div id="cmd-chat">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Copies a source file or folder to a destination</td></tr>
+
{{API table/row
 +
|[[chat]]<br><tt>chat host <hostname></tt>, <tt>chat join <hostname> <nickname></tt>
 +
|Peer-to-peer rednet-based messaging software.
 +
|1.6
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-dj">dj</div><tt>dj</tt></td>
+
<div id="cmd-clear">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Music box DJ - use <tt>dj</tt> for help.</td></tr>  
+
{{API table/row
 +
|[[clear]]<br><tt>clear</tt>
 +
|Clears the terminal.
 +
|
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-drive">drive</div><tt>drive</tt>, <tt>drive <path></tt></td>
+
<div id="cmd-copy">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Lists the mount location of the current directory, or the path specified.</td></tr>
+
{{API table/row
 +
|[[copy]]<br><tt>copy <source> <destination></tt>
 +
|Copies a source file or folder to a destination
 +
|1.2
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-edit">edit</div><tt>edit <path></tt></td>
+
<div id="cmd-delete">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Edits the file specified.</td></tr>  
+
{{API table/row
 +
|[[delete]]<br><tt>delete <path></tt>
 +
|Deletes the specified file (in the same manner as [[rm]]).
 +
|1.2
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-eject">eject</div><tt>eject <side></tt></td>
+
<div id="cmd-dj">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Ejects the disk on the side specified.</td></tr>
+
{{API table/row
 +
|[[dj]]<br><tt>dj</tt>
 +
|Music box DJ - use <tt>dj</tt> for help.
 +
|1.2
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-exit">exit</div><tt>exit</tt></td>
+
<div id="cmd-drive">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Exits the currently running shell session - if it is the only shell session, the computer will power off.</td></tr>  
+
{{API table/row
 +
|[[drive]]<br><tt>drive</tt>, <tt>drive <path></tt>
 +
|Lists the mount location of the current directory, or the path specified.
 +
|1.2
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-gps">gps</div><tt>gps</tt></td>
+
<div id="cmd-edit">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Minecraft Global Positioning tool. Use <tt>gps</tt> for help.</td></tr>
+
{{API table/row
 +
|[[edit]]<br><tt>edit <path></tt>
 +
|Edits the file specified.
 +
|
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-help">help</div><tt>help</tt>, <tt>help <topic></tt></td>
+
<div id="cmd-eject">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Help utility. Opens the specified topic, or the introduction if no topic is specified.</td></tr>  
+
{{API table/row
 +
|[[eject]]<br><tt>eject <side></tt>
 +
|Ejects the disk on the side specified.
 +
|1.2
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-id">id</div><tt>id</tt>, <tt>id <side></tt></td>
+
<div id="cmd-exit">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the ID of the computer, or if a side is specified, the ID of the disk in the specified side.</td></tr>
+
{{API table/row
 +
|[[exit]]<br><tt>exit</tt>
 +
|Exits the currently running shell session - if it is the only shell session, the computer will power off.
 +
|
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-label">label</div><tt>label</tt></td>
+
<div id="cmd-fg">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Gets and sets the ID of the computer, or, the ID of a disk in a specified side. Use <tt>label</tt> for help.</td></tr>  
+
{{API table/row
 +
|[[fg]]<br><tt>fg <program> <arguments></tt>
 +
|Opens the specified script in a new [[multishell]] tab, then switches to it.
 +
|1.6
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-list">list</div><tt>list</tt>, <tt>list <path></tt></td>
+
<div id="cmd-gps">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Lists the content of the current directory, or, the directory specified.</td></tr>
+
{{API table/row
 +
|[[Gps (program)|gps]]<br><tt>gps <?></tt>
 +
|Minecraft Global Positioning tool. Use <tt>gps</tt> for help.
 +
|1.31
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-lua">lua</div><tt>lua</tt></td>
+
<div id="cmd-help">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Interactive Lua interpreter at the shell.</td></tr>  
+
{{API table/row
 +
|[[help]]<br><tt>help</tt>, <tt>help <topic></tt>
 +
|Help utility. Opens the specified topic, or the introduction if no topic is specified.
 +
|
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-mkdir">mkdir</div><tt>mkdir <path></tt></td>
+
<div id="cmd-id">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Makes the directory at the path specified.</td></tr>
+
{{API table/row
 +
|[[id]]<br><tt>id</tt>, <tt>id <side></tt>
 +
|Returns the ID of the computer, or if a side is specified, the ID of the disk in the specified side.
 +
|1.2
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-monitor">monitor</div><tt>monitor <side> <program> <arguments></tt></td>
+
<div id="cmd-label">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Redirects a specified program to a monitor on the specified side.</td></tr>  
+
{{API table/row
 +
|[[label]]<br><tt>label</tt>
 +
|Gets and sets the ID of the computer, or, the ID of a disk in a specified side. Use <tt>label</tt> for help.
 +
|1.2
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-move">move</div><tt>move <source> <destination></tt></td>
+
<div id="cmd-list">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Moves a file or folder at a specified source path to the specified destination path.</td></tr>
+
{{API table/row
 +
|[[list]]<br><tt>list</tt>, <tt>list <path></tt>
 +
|Lists the content of the current directory, or, the directory specified.
 +
|1.2
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-programs">programs</div><tt>programs</tt></td>
+
<div id="cmd-lua">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Lists all programs on the system.</td></tr>  
+
{{API table/row
 +
|[[lua]]<br><tt>lua</tt>
 +
|Interactive Lua interpreter at the shell.
 +
|
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-reboot">reboot</div><tt>reboot</tt></td>
+
<div id="cmd-mkdir">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Reboots the Computer.</td></tr>
+
{{API table/row
 +
|[[mkdir]]<br><tt>mkdir <path></tt>
 +
|Makes the directory at the path specified.
 +
|
 +
|odd}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-redprobe">redprobe</div><tt>redprobe</tt></td>
+
<div id="cmd-monitor">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">List redstone stats.</td></tr>  
+
{{API table/row
 +
|[[Monitor (program)|monitor]]<br><tt>monitor <side> <program> <arguments></tt>
 +
|Redirects a specified program to a monitor on the specified side.
 +
|1.31
 +
|}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-redpulse">redpulse</div><tt>redpulse</tt></td>
+
<div id="cmd-move">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Redstone output pulse tool. Use <tt>redpulse</tt> for help.</td></tr>
+
{{API table/row
 +
|[[move]]<br><tt>move <source> <destination></tt>
 +
|Moves a file or folder at a specified source path to the specified destination path.
 +
|1.2
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-multishell">
 +
{{API table/row
 +
|[[multishell]]<br><tt>multishell</tt>
 +
|Opens a new instance of multishell, running within the ''current'' multishell session.
 +
|1.6
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-paint">
 +
{{API table/row
 +
|[[paint]]<br><tt>paint <path></tt>
 +
|Edits the image specified.
 +
|1.45
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-pastebin">
 +
{{API table/row
 +
|[[Pastebin_(program)|pastebin]]<br><tt>pastebin <get/run/put> <pastebin code/file></tt>
 +
|Allows the user to either retrieve a file from [https://pastebin.com/ pastebin.com], run it directly after downloading, or upload a file from the computer/turtle.
 +
|1.31
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-peripherals">
 +
{{API table/row
 +
|[[peripherals_(program)|peripherals]]<br><tt>peripherals</tt>
 +
|Lists all peripherals attacked to the system.
 +
|1.76
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-programs">
 +
{{API table/row
 +
|[[programs]]<br><tt>programs</tt>
 +
|Lists all programs on the system.
 +
|
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-reboot">
 +
{{API table/row
 +
|[[reboot]]<br><tt>reboot</tt>
 +
|Reboots the Computer.
 +
|1.2
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-redstone">
 +
{{API table/row
 +
|[[redstone (program)|redstone]]<br><tt>redstone <?></tt>
 +
|Controls the redstone output state(s) of the system.
 +
|1.6
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-repeat">
 +
{{API table/row
 +
|[[repeat]]<br><tt>repeat</tt>
 +
|Configures the system to act as a [[rednet (API)|rednet]] repeater.
 +
|1.6
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-rename">
 +
{{API table/row
 +
|[[rename]]<br><tt>rename <old-name> <new-name></tt>
 +
|Renames a file or directory.
 +
|1.2
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-rm">
 +
{{API table/row
 +
|[[rm]]<br><tt>rm <path></tt>
 +
|Deletes the specified file (in the same manner as [[delete]]).
 +
|
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-set">
 +
{{API table/row
 +
|[[set]]<br><tt>set <env variable> <value></tt>
 +
|Changes system settings.
 +
|1.77
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-shell">
 +
{{API table/row
 +
|[[shell]]<br><tt>shell, shell <program> <arguments></tt>
 +
|Opens another shell session. Runs a program if specified.
 +
|
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-shutdown">
 +
{{API table/row
 +
|[[shutdown]]<br><tt>shutdown</tt>
 +
|Powers off the Computer.
 +
|
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-time">
 +
{{API table/row
 +
|[[time]]<br><tt>time</tt>
 +
|Returns the Minecraft time of day.
 +
|1.2
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-type">
 +
{{API table/row
 +
|[[type]]<br><tt>type <path></tt>
 +
|Returns the type of the object or file at the specified path.
 +
|
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-wget">
 +
{{API table/row
 +
|[[wget]]<br><tt>wget <url> <filename></tt>
 +
|Fetches the content at the specified web address and saves it to the specified file.
 +
|1.77
 +
|odd}}
 +
</div>
 +
 
 +
</table><br><br>
 +
 
 +
== Turtle-specific Commands ==
 +
 
 +
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 +
<tr><td colspan="3" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;">
 +
[[File:Grid_disk.png|24px]]&nbsp;&nbsp;
 +
Additional TurtleOS Shell Programs
 +
</td></tr>
 +
<tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Program Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Version Added</td></tr>
 +
 
 +
<div id="cmd-craft">
 +
{{API table/row
 +
|[[craft]]<br><tt>craft</tt>
 +
|The turtle will, if it is able, craft an item from the contents of its inventory.
 +
|1.4
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-dance">
 +
{{API table/row
 +
|[[dance]]<br><tt>dance</tt>
 +
|Initiates "get down" procedure.
 +
|1.3
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-equip">
 +
{{API table/row
 +
|[[equip]]<br><tt>equip <side></tt>
 +
|The turtle will attempt to place a tool on its specified side.
 +
|1.6
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-excavate">
 +
{{API table/row
 +
|[[excavate]]<br><tt>excavate <width></tt>
 +
|Digs a square-shaped quarry to bedrock, of width equal to that specified.
 +
|1.3
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-go">
 +
{{API table/row
 +
|[[go]]<br><tt>go <?></tt>
 +
|Moves the turtle.
 +
|1.3
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-refuel">
 +
{{API table/row
 +
|[[refuel]]<br><tt>refuel <amount></tt>
 +
|Attempts to replenish the turtle's [[fuel]] supply with items from its inventory.
 +
|1.4
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-tunnel">
 +
{{API table/row
 +
|[[tunnel]]<br><tt>tunnel <width></tt>
 +
|Digs a horizontal tunnel leading off in the direction the turtle is facing.
 +
|1.3
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-turn">
 +
{{API table/row
 +
|[[turn]]<br><tt>turn <?></tt>
 +
|Causes the turtle to rotate.
 +
|1.3
 +
|}}
 +
</div>
 +
 
 +
<div id="cmd-unequip">
 +
{{API table/row
 +
|[[unequip]]<br><tt>unequip<width></tt>
 +
|Attempts to remove a tool from the turtle's specified side.
 +
|1.6
 +
|odd}}
 +
</div>
 +
 
 +
</table><br><br>
 +
 
 +
== Command Computer-specific Commands ==
 +
 
 +
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 +
<tr><td colspan="3" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;">
 +
[[File:Grid_disk.png|24px]]&nbsp;&nbsp;
 +
Additional Command Computer Programs
 +
</td></tr>
 +
<tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Program Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Version Added</td></tr>
 +
 
 +
<div id="cmd-commands">
 +
{{API table/row
 +
|[[commands]]<br><tt>commands</tt>
 +
|Lists all commands available to the [[Command Computer]] under the current version of Minecraft.
 +
|1.7
 +
|odd}}
 +
</div>
 +
 
 +
<div id="cmd-exec">
 +
{{API table/row
 +
|[[exec]]<br><tt>exec <command></tt>
 +
|Executes the specified [https://minecraft.gamepedia.com/Commands operator command] as if through a Command Block.
 +
|1.7
 +
|}}
 +
</div>
 +
 
 +
</table><br><br>
 +
 
 +
== Removed Commands ==
 +
 
 +
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 +
<tr><td colspan="3" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;">
 +
[[File:Grid_disk.png|24px]]&nbsp;&nbsp;
 +
Removed Commands
 +
</td></tr>
 +
<tr><td style="width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;">Program Name</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Description</td><td style="background: #E0E0E0; padding: .4em; font-weight:bold;">Version Removed</td></tr>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-redset">redset</div><tt>redset</tt></td>
+
<div id="cmd-redprobe">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Redstone output set tool. Use <tt>redset</tt> for help.</td></tr>  
+
{{API table/row
 +
|[[redprobe]]<br><tt>redprobe</tt>
 +
|List redstone stats.
 +
|1.6
 +
|odd}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-time">time</div><tt>time</tt></td>
+
<div id="cmd-redpulse">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the Minecraft time of day.</td></tr>
+
{{API table/row
 +
|[[redpulse]]<br><tt>redpulse</tt>
 +
|Redstone output pulse tool. Use <tt>redpulse</tt> for help.
 +
|1.6
 +
|}}
 +
</div>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-type">type</div><tt>type <path></tt></td>
+
<div id="cmd-redset">
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Returns the type of the object or file at the specified path.</td></tr>  
+
{{API table/row
 +
|[[redset]]<br><tt>redset</tt>
 +
|Redstone output set tool. Use <tt>redset</tt> for help.
 +
|1.6
 +
|odd}}
 +
</div>
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-rename">rename</div><tt>rename <old-name> <new-name></tt></td>
+
</table><br><br>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Renames a file or directory.</td></tr>
+
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-shell">shell</div><tt>shell, shell <program> <arguments></tt></td>
+
== See Also ==
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Opens another shell session. Runs a program if specified.</td></tr>
+
* [[Built In Turtle Programs]]
  
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-shutdown">shutdown</div><tt>shutdown</tt></td>
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Powers off the Computer.</td></tr>
 
</table>
 
 
[[Category:Programs]][[Category:Lists]][[Category:Tutorials]]
 
[[Category:Programs]][[Category:Lists]][[Category:Tutorials]]

Latest revision as of 07:07, 4 August 2020

Regular Shell Commands

Grid disk.png   CraftOS Shell Programs

Program NameDescriptionVersion Added
alias
alias <alias> <program>
Maps an alias string to a program. 1.2
apis
apis
Lists all loaded APIs. 1.2
bg
bg <program> <arguments>
Opens the specified script in a new multishell tab. 1.6
cd
cd <path>
Changes to the specified directory
chat
chat host <hostname>, chat join <hostname> <nickname>
Peer-to-peer rednet-based messaging software. 1.6
clear
clear
Clears the terminal.
copy
copy <source> <destination>
Copies a source file or folder to a destination 1.2
delete
delete <path>
Deletes the specified file (in the same manner as rm). 1.2
dj
dj
Music box DJ - use dj for help. 1.2
drive
drive, drive <path>
Lists the mount location of the current directory, or the path specified. 1.2
edit
edit <path>
Edits the file specified.
eject
eject <side>
Ejects the disk on the side specified. 1.2
exit
exit
Exits the currently running shell session - if it is the only shell session, the computer will power off.
fg
fg <program> <arguments>
Opens the specified script in a new multishell tab, then switches to it. 1.6
gps
gps <?>
Minecraft Global Positioning tool. Use gps for help. 1.31
help
help, help <topic>
Help utility. Opens the specified topic, or the introduction if no topic is specified.
id
id, id <side>
Returns the ID of the computer, or if a side is specified, the ID of the disk in the specified side. 1.2
label
label
Gets and sets the ID of the computer, or, the ID of a disk in a specified side. Use label for help. 1.2
list
list, list <path>
Lists the content of the current directory, or, the directory specified. 1.2
lua
lua
Interactive Lua interpreter at the shell.
mkdir
mkdir <path>
Makes the directory at the path specified.
monitor
monitor <side> <program> <arguments>
Redirects a specified program to a monitor on the specified side. 1.31
move
move <source> <destination>
Moves a file or folder at a specified source path to the specified destination path. 1.2
multishell
multishell
Opens a new instance of multishell, running within the current multishell session. 1.6
paint
paint <path>
Edits the image specified. 1.45
pastebin
pastebin <get/run/put> <pastebin code/file>
Allows the user to either retrieve a file from pastebin.com, run it directly after downloading, or upload a file from the computer/turtle. 1.31
peripherals
peripherals
Lists all peripherals attacked to the system. 1.76
programs
programs
Lists all programs on the system.
reboot
reboot
Reboots the Computer. 1.2
redstone
redstone <?>
Controls the redstone output state(s) of the system. 1.6
repeat
repeat
Configures the system to act as a rednet repeater. 1.6
rename
rename <old-name> <new-name>
Renames a file or directory. 1.2
rm
rm <path>
Deletes the specified file (in the same manner as delete).
set
set <env variable> <value>
Changes system settings. 1.77
shell
shell, shell <program> <arguments>
Opens another shell session. Runs a program if specified.
shutdown
shutdown
Powers off the Computer.
time
time
Returns the Minecraft time of day. 1.2
type
type <path>
Returns the type of the object or file at the specified path.
wget
wget <url> <filename>
Fetches the content at the specified web address and saves it to the specified file. 1.77


Turtle-specific Commands

Grid disk.png   Additional TurtleOS Shell Programs

Program NameDescriptionVersion Added
craft
craft
The turtle will, if it is able, craft an item from the contents of its inventory. 1.4
dance
dance
Initiates "get down" procedure. 1.3
equip
equip <side>
The turtle will attempt to place a tool on its specified side. 1.6
excavate
excavate <width>
Digs a square-shaped quarry to bedrock, of width equal to that specified. 1.3
go
go <?>
Moves the turtle. 1.3
refuel
refuel <amount>
Attempts to replenish the turtle's fuel supply with items from its inventory. 1.4
tunnel
tunnel <width>
Digs a horizontal tunnel leading off in the direction the turtle is facing. 1.3
turn
turn <?>
Causes the turtle to rotate. 1.3
unequip
unequip<width>
Attempts to remove a tool from the turtle's specified side. 1.6


Command Computer-specific Commands

Grid disk.png   Additional Command Computer Programs

Program NameDescriptionVersion Added
commands
commands
Lists all commands available to the Command Computer under the current version of Minecraft. 1.7
exec
exec <command>
Executes the specified operator command as if through a Command Block. 1.7


Removed Commands

Grid disk.png   Removed Commands

Program NameDescriptionVersion Removed
redprobe
redprobe
List redstone stats. 1.6
redpulse
redpulse
Redstone output pulse tool. Use redpulse for help. 1.6
redset
redset
Redstone output set tool. Use redset for help. 1.6


See Also