Difference between revisions of "CraftOS Shell"
From ComputerCraft Wiki
(Added a new table for manipulating and moving files/directories) |
(Fixed minor typo) |
||
Line 40: | Line 40: | ||
| | | | ||
| '''Delete'''s a file or folder | | '''Delete'''s a file or folder | ||
− | | <pre>delete / | + | | <pre>delete /pathToDelete</pre> |
|} | |} |
Revision as of 02:06, 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 /pathToDelete |