Difference between revisions of "CraftOS Shell"

From ComputerCraft Wiki
Jump to: navigation, search
m (Added anchors, hopefully. x_x)
(More info for 'shell' and 'monitor' programs)
Line 57: Line 57:
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Makes the directory at the path specified.</td></tr>
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Makes the directory at the path specified.</td></tr>
  
<tr style="background-color: #E8E8E8;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-monitor">monitor</div><tt>monitor</tt></td>
+
<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>
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Redirects a specified program to a monitor on the specified side.</td></tr>  
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Redirects a specified program to a monitor on the specified side.</td></tr>  
  
Line 87: Line 87:
 
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Renames a file or directory.</td></tr>
 
<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</tt></td>
+
<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>
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Opens another shell session.</td></tr>  
+
<td style="border-top: solid #C9C9C9 1px; padding: .4em;">Opens another shell session. Runs a program if specified.</td></tr>  
  
 
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-shutdown">shutdown</div><tt>shutdown</tt></td>
 
<tr style="background-color: #FFFFFF;"><td style="border-top: solid #C9C9C9 1px; padding: .4em;"><div id="cmd-shutdown">shutdown</div><tt>shutdown</tt></td>

Revision as of 22:24, 30 March 2014

Grid disk.png   CraftOS Shell Programs

Program NameDescription
alias
alias <alias> <program>
Maps an alias string to a program.
apis
apis
Lists all loaded APIs.
cd
cd <path>
Changes to the specified directory
clear
clear
Clears the terminal.
copy
copy <source> <destination>
Copies a source file or folder to a destination
dj
dj
Music box DJ - use dj for help.
drive
drive, drive <path>
Lists the mount location of the current directory, or the path specified.
edit
edit <path>
Edits the file specified.
eject
eject <side>
Ejects the disk on the side specified.
exit
exit
Exits the currently running shell session - if it is the only shell session, the computer will power off.
gps
gps
Minecraft Global Positioning tool. Use gps for help.
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.
label
label
Gets and sets the ID of the computer, or, the ID of a disk in a specified side. Use label for help.
list
list, list <path>
Lists the content of the current directory, or, the directory specified.
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.
move
move <source> <destination>
Moves a file or folder at a specified source path to the specified destination path.
programs
programs
Lists all programs on the system.
reboot
reboot
Reboots the Computer.
redprobe
redprobe
List redstone stats.
redpulse
redpulse
Redstone output pulse tool. Use redpulse for help.
redset
redset
Redstone output set tool. Use redset for help.
time
time
Returns the Minecraft time of day.
type
type <path>
Returns the type of the object or file at the specified path.
rename
rename <old-name> <new-name>
Renames a file or directory.
shell
shell, shell <program> <arguments>
Opens another shell session. Runs a program if specified.
shutdown
shutdown
Powers off the Computer.