Changes between Initial Version and Version 1 of UsersGuide/Shell


Ignore:
Timestamp:
2010-06-23T17:43:05Z (14 years ago)
Author:
Jiri Svoboda
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide/Shell

    v1 v1  
     1= Shell =
     2
     3HelenOS is primarily controlled by means of an interactive shell called ''Bdsh''. This sections teaches you the basics of using this shell.
     4
     5Type ''help'' (+Enter) to get a list of built-in commands.
     6
     7== Basics ==
     8
     9The shell supports [UsersGuide/TextEditing common text-editing controls]. In addition to that the following controls are defined:
     10
     11|| '''Keystroke'''  || '''Action''' ||
     12|| Enter            || Submit and execute the command ||
     13|| Up Arrow         || Move to older history entry ||
     14|| Down Arrow       || Move to newer history entry ||
     15
     16(''Trunk Only'') Other command-line driven applications (e.g. SBI) support exactly the same controls as the shell. (The command-line input is implemented in a common library called CLUI).
     17
     18== Internal Shell Commands ==
     19
     20The shell supports a few basic commands which are built into it. (Such as listing directories, creating and moving them, deleting files, etc). Other HelenOS commands are external (i.e. these are executable files on the file system) - this is similar to other operating systems.
     21
     22To get a list of internal commands supported by the shell enter the command:
     23{{{
     24# help
     25}}}
     26
     27== External Commands ==
     28
     29Most other HelenOS functionality is implemented in regular executable files (external commands), similar to other operating systems. These executables are traditionally divided into two groups: ''applications'' and ''servers''.
     30
     31''Servers'' can be though similar to UNIX daemons. When you run them in the right way, they will return control to the command line, but continue running on the background. To obtain a list of available servers:
     32{{{
     33# ls /srv
     34}}}
     35
     36''Applications'' are regular executables that perform some task and terminate. They can also be interactive applications (e.g. Tetris). To obtain a list of available applications, enter:
     37{{{
     38# ls /app
     39}}}
     40
     41To execute a server or application, simply type its name (plus enter) on the command line. (Some servers or apps require command-line arguments, however). To run Tetris, for example, enter:
     42{{{
     43# tetris
     44}}}