2012-06-04 16:54:51 +04:00
2010-10-21 03:58:36 +04:00
const command_t COMMANDS [ ] =
{
2010-10-21 08:37:59 +04:00
{ " about " , " Displays information about Shell \n \r " , & cmd_about } ,
{ " alias " , " Allows the user view the current aliases \n \r " , & cmd_alias } ,
{ " cd " , " Changes current directory. Usage: \n \r cd <directory name> \n \r " , & cmd_cd } ,
{ " clear " , " Clears the screen \n \r " , & cmd_clear } ,
2013-02-16 15:25:37 +04:00
{ " cp " , " Copies file \n \r " , & cmd_cp } ,
2020-04-17 00:50:49 +03:00
{ " mv " , " Moves file \n \r " , & cmd_mv } ,
{ " ren " , " Renames file \n \r " , & cmd_ren } ,
2010-10-21 08:37:59 +04:00
{ " date " , " Returns the current date and time \n \r " , & cmd_date } ,
{ " echo " , " Echoes the data to the screen. Usage: \n \r echo <data> \n \r " , & cmd_echo } ,
{ " exit " , " Exits from Shell \n \r " , & cmd_exit } ,
2012-06-04 16:54:51 +04:00
{ " free " , " Displays total, free and used memory \n \r " , & cmd_memory } ,
2010-10-21 08:37:59 +04:00
{ " help " , " Gives help on commands. Usage: \n \r help ;it lists all builtins \n \r help <command> ;help on command \n \r " , & cmd_help } ,
2012-06-04 16:54:51 +04:00
{ " history " , " Lists used commands \n \r " , & cmd_history } ,
2013-02-17 19:22:51 +04:00
{ " kill " , " Stops a running process. Usage: \n \r kill <PID of process> \n \r kill all \n \r " , & cmd_kill } ,
2017-09-27 21:44:15 +03:00
{ " 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 } ,
2010-10-21 08:37:59 +04:00
{ " 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 } ,
{ " more " , " Displays a file data to the screen. Usage: \n \r more <file name> \n \r " , & cmd_more } ,
2017-01-06 19:12:57 +03:00
{ " ps " , " Lists the current processes running \n \r or shows more info on <procname> and save LASTPID \n \r " , & cmd_ps } ,
2010-10-21 08:37:59 +04:00
{ " pwd " , " Displays the name of the working directory \n \r " , & cmd_pwd } ,
2011-01-30 14:52:46 +03:00
{ " 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 } ,
2010-10-21 08:37:59 +04:00
{ " rm " , " Removes a file. Usage: \n \r rm file name> \n \r " , & cmd_rm } ,
{ " rmdir " , " Removes a folder. Usage: \n \r rmdir <directory> \n \r " , & cmd_rmdir } ,
{ " shutdown " , " Turns off the computer \n \r " , & cmd_shutdown } ,
2012-06-04 16:54:51 +04:00
{ " 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 } ,
2010-10-21 08:37:59 +04:00
{ " touch " , " Creates an empty file or updates the time/date stamp on a file. Usage: \n \r touch <file name> \n \r " , & cmd_touch } ,
2010-10-21 08:53:41 +04:00
{ " uptime " , " Displays the uptime \n \r " , & cmd_uptime } ,
2013-02-16 15:25:37 +04:00
{ " 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 } ,
2017-01-06 19:12:57 +03:00
{ " 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 } ,
2012-06-04 16:54:51 +04:00
} ;
2013-02-17 19:22:51 +04:00