Difference between revisions of "CraftOS Shell"
From ComputerCraft Wiki
(Fixed minor typo) |
|||
Line 1: | Line 1: | ||
− | + | These commands are similar to *NIX-like OSs, but this guide is handy when using the shell. | |
− | + | Navigation: | |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 9: | Line 9: | ||
! Example | ! Example | ||
|- | |- | ||
− | | | + | | list |
− | | dir | + | | ls, dir |
− | | ''' | + | | '''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 |