SHELL
The shell commands are listed below. Note that there are two modes of running the shell, a unix style mode, and a DOS style mode. The unix mode is default, but you can run initially in DOS mode by using shell -d, rather than just shell. Also once running, the -u and -d commands will switch between modes. The other way to set this style mode is via the environment optioin "STYLE". This can be done by typing "set style=dos" or "set style=unix". NB: unix style is the default, so if ANYTHING else is set as style besides "dos" (even if it is just a typing error) the system will revert to unix style. When running the shell, you can specify a command to be executed immediately, by adding the /c parameter, followed by the command. Note that everything after the /c switch will be read as the command string, so if you wish to use other switches as well (eg -d) then make sure you put them all before the /c. You can also specify a '-boot' parameter when executing the shell (ie 'shell -boot'), this will cause it to load up as if booting. It will therefore run the 'autoexec.cmd' file. PetrOS now supports multiple virtual consoles. Hence you can have up to four virtual shells running at one time. To select between these, use the keys Ctrl-Alt-F1 up to F4. Ctrl-Alt-Delete will exit you from a virtual console. In the following list, the unix style command is given followed by its DOS equivelant, unless they are the same in both modes. - ? : Write the command list to screen - exit : exit out of the shell (Will cause a reboot if booted into PetrOS). - cd : change directory to one specified. Eg cd system/drivers. - ls/dir : list the current directory. Switch of "-all" will show all details. - mv/ren : rename a file: eg. mv/ren name1 name2. Wild character is * or ?. - cp/copy : copy a file or files from one location to another. Wild character is * or ?. - rm/del : remove/delete a file or files. Wild character is * or ?. - mkdir : create a new directory with your specified name: eg. mkdir MYDIR. - rmdir : remove the directory specified: eg. rmdir MYDIR. - cat/type : list the file type or category. - more : list a file with only a certain amount being displayed on screen at a time. Shell awaits a keypress before continuing and showing the next section of the file. - load : load the driver specified. - unload : unload the driver specififed. - drivers : lists the current drivers on screen. - debug : display assembly code of the given application: eg. debug telnet. - bg : run the specified program in the background: eg. bg telnetd. - ps : display the current tasks on screen.. - ver : display the PetrOS shell version running. - kill : kill the task that has the id number specified: eg. kill 32. - set : set environment options (eg path, style etc). if no arguments are entered, then the current values for all fields are shown. - path : set the path value. if no arguments are entered then the current path is displayed. - echo : write arguments to screen. - -d/-u : changes between command style modes. - rd and md (DOS mode only). These are shortened versions of rmdir and mkdir respectively. |