Difference between revisions of "CraftOS Shell"

From ComputerCraft Wiki
Jump to: navigation, search
(Fixed minor typo)
Line 1: Line 1:
If you're familliar with *NIX-like OSes, then this should be very easy. But this guide can still come in handy.
+
These commands are similar to *NIX-like OSs, but this guide is handy when using the shell.
  
First of all: navigating.
+
Navigation:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 9: Line 9:
 
!  Example
 
!  Example
 
|-
 
|-
ls
+
list
|  dir
+
ls, dir
|  '''L'''i'''s'''ts all files and folders in a directory
+
|  '''List'''s all files and folders in a directory
 
|  <pre>ls</pre>
 
|  <pre>ls</pre>
 
|-
 
|-
Line 19: Line 19:
 
|  <pre>cd /disk</pre>
 
|  <pre>cd /disk</pre>
 
|}
 
|}
Manipulating folders and files
+
Manipulating folders and files:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-

Revision as of 21:10, 16 May 2012

These commands are similar to *NIX-like OSs, but this guide is handy when using the shell.

Navigation:

Command Aliases Description Example
list ls, dir Lists all files and folders in a directory
ls
cd Changes the current directory
cd /disk

Manipulating folders and files:

Command Aliases Description Example
mkdir Makes a directory
mkdir /exampleDirectory
copy cp Copies a file or folder to another directory
cp /toCopy /targetLocation
delete Deletes a file or folder
delete /pathToDelete