Aros/User/DOS

From Wikibooks, the open-content textbooks collection

< Aros
Jump to: navigation, search

Contents

[edit] The AROS shell

In Wanderer (AROS Desktop / GUI), hit RightAROS + w to open a shell window (or use right mousebutton to access Wanderer's menu on the top of the screen).


[edit] Beginners Tutorial / Basic Usage

By default, the current directory is being displayed as part of your shell prompt. By default, your starting point is 'System:', the OS' root directory.

System:>

Type 'dir' and hit return. You will see the contents of the current directory.

System:>dir

You can run an executable or enter a directory just by typing it's name (and hitting return). Enter the 'C' directory simply by typing 'c' (AROS DOS is case insensitive):

System:>c

Now press the up-arrow button twice. AROS shell has got a command history, which allows you to repeat or re-use commands quickly. Now you should see the 'dir' command again, so hit return. You will see the contents of the 'c' directory you've just entered.

System:c>dir


This directory is AROS' primary location for executables which can be run from any directory. Now type '/' (just a slash) and hit return. You've just moved up one directory, back to 'System:'

System:>

Now try another 'dir' like command (which resides in the 'c' directory), 'list':

System:>list

The output is quite the same as 'dir'. But you can control the 'list' output with options. AROS DOS command line options are recognized by their name, and eventually their position on the command line. Try this:

System:>list sub d

The output will now consist of all the directories contents which names contain the substring 'd'. Another example, another option:

System:>list sub d all

This will list the contents matching 'd' recursively.

[edit] AROS DOS Commands Reference

[edit] Files

S:Shell-startup

...is a script that will be run when starting up a new shell. By default, it contains commands that define the look of your shell prompt. See description of 'prompt' command.