Subversion Repositories Kolibri OS

Rev

Rev 7802 | Rev 8827 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. const command_t COMMANDS[]=
  3. {
  4.         {"about",   "  Displays information about Shell\n\r", &cmd_about},
  5.         {"alias",   "  Allows the user view the current aliases\n\r", &cmd_alias},
  6.         {"cd",      "  Changes current directory. Usage:\n\r    cd <directory name>\n\r", &cmd_cd},
  7.         {"clear",   "  Clears the screen\n\r", &cmd_clear},
  8.         {"cp",      "  Copies file\n\r", &cmd_cp},
  9.         {"mv",      "  Moves file\n\r", &cmd_mv},
  10.         {"ren",     "  Renames file\n\r", &cmd_ren},
  11.         {"date",    "  Returns the current date and time\n\r", &cmd_date},
  12.         {"echo",    "  Echoes the data to the screen. Usage:\n\r    echo <data>\n\r", &cmd_echo},
  13.         {"exit",    "  Exits from Shell\n\r", &cmd_exit},
  14.         {"free",    "  Displays total, free and used memory\n\r", &cmd_memory},
  15.         {"help",    "  Gives help on commands. Usage:\n\r    help ;it lists all builtins\n\r    help <command> ;help on command\n\r", &cmd_help},
  16.         {"history", "  Lists used commands\n\r", &cmd_history},
  17.         {"kill",    "  Stops a running process. Usage:\n\r    kill <PID of process>\n\r    kill all\n\r", &cmd_kill},
  18.         {"pkill",   "  Kills all processes by name. Usage:\n\r    pkill <process_name>\n\r", &cmd_pkill},
  19.         {"ls",      "  Lists the files in a directory. Usage:\n\r    ls ;lists the files in current directory\n\r    ls <directory> ;lists the files at specified folder\n\r    ls -1 ;lists the files in a single column\n\r", &cmd_ls},
  20.         {"mkdir",   "  Makes directory. Usage:\n\r    mkdir <folder name> ;creates the folder in working directory\n\r    mkdir <path><folder name> ;create folder by specified path\n\r", &cmd_mkdir},
  21.         {"more",    "  Displays a file data to the screen. Usage:\n\r    more <file name>\n\r", &cmd_more},
  22.         {"ps",      "  Lists the current processes running\n\r  or shows more info on <procname> and save LASTPID\n\r", &cmd_ps},
  23.         {"pwd",     "  Displays the name of the working directory\n\r", &cmd_pwd},
  24.         {"reboot",  "  Reboots the computer or KolibriOS kernel. Usage:\n\r    reboot ;reboot a PC\n\r    reboot kernel ;reboot the KolibriOS kernel\n\r", &cmd_reboot},
  25.         {"rm",      "  Removes a file. Usage:\n\r    rm file name>\n\r", &cmd_rm},
  26.         {"rmdir",   "  Removes a folder. Usage:\n\r    rmdir <directory>\n\r", &cmd_rmdir},
  27.         {"shutdown","  Turns off the computer\n\r", &cmd_shutdown},
  28.         {"sleep",   "  Stops the shell for the desired period. Usage:\n\r    sleep <time in the 1/100 of second>\n\r  Example:\n\r    sleep 500 ;pause for 5sec.\n\r", &cmd_sleep},
  29.         {"touch",   "  Creates an empty file or updates the time/date stamp on a file. Usage:\n\r    touch <file name>\n\r", &cmd_touch},
  30.         {"uptime",  "  Displays the uptime\n\r", &cmd_uptime},
  31.         {"ver",     "  Displays version. Usage:\n\r    ver ;Shell version\n\r    ver kernel ;version of KolibriOS kernel\n\r    ver cpu ;information about CPU\n\r", &cmd_ver},
  32.         {"waitfor", "  Stops console waiting while process finish. Usage:\n\r    waitfor ;waiting previous started executable LASTPID\n\r    waitfor <PID>;awaiting PID finish\n\r", &cmd_waitfor},
  33. };
  34.  
  35.