Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Initial Version and Version 1 of UsersGuide/Shell

2010-06-23T17:43:05Z (12 years ago)
Jiri Svoboda


  • UsersGuide/Shell

    v1 v1  
     1= Shell =
     3HelenOS is primarily controlled by means of an interactive shell called ''Bdsh''. This sections teaches you the basics of using this shell.
     5Type ''help'' (+Enter) to get a list of built-in commands.
     7== Basics ==
     9The shell supports [UsersGuide/TextEditing common text-editing controls]. In addition to that the following controls are defined:
     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 ||
     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).
     18== Internal Shell Commands ==
     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.
     22To get a list of internal commands supported by the shell enter the command:
     24# help
     27== External Commands ==
     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''.
     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:
     33# ls /srv
     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:
     38# ls /app
     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:
     43# tetris