Difference between revisions of "CraftOS Shell"

From ComputerCraft Wiki
Jump to: navigation, search
(Added a new table for manipulating and moving files/directories)
Line 18: Line 18:
 
|  Changes the '''c'''urrent '''d'''irectory
 
|  Changes the '''c'''urrent '''d'''irectory
 
|  <pre>cd /disk</pre>
 
|  <pre>cd /disk</pre>
 +
|}
 +
Manipulating folders and files
 +
{| class="wikitable"
 +
|-
 +
!  Command
 +
!  Aliases
 +
!  Description
 +
!  Example
 +
|-
 +
|  mkdir
 +
 +
|  '''M'''akes a '''dir'''ectory
 +
|  <pre>mkdir /exampleDirectory</pre>
 +
|-
 +
|  copy
 +
|  cp
 +
|  '''C'''o'''p'''ies a file or folder to another directory
 +
|  <pre>cp /toCopy /targetLocation</pre>
 +
|-
 +
|  delete
 +
 +
|  '''Delete'''s a file or folder
 +
|  <pre>delete /pathToDelte</pre>
 
|}
 
|}

Revision as of 02:04, 9 May 2012

If you're familliar with *NIX-like OSes, then this should be very easy. But this guide can still come in handy.

First of all: navigating.

Command Aliases Description Example
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 /pathToDelte