Rev 1807 | Rev 3245 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1807 | Rev 2735 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | const command_t COMMANDS[]= |
|
1 | const command_t COMMANDS[]= |
2 | { |
2 | { |
3 | {"about", " Displays information about Shell\n\r", &cmd_about}, |
3 | {"about", " Displays information about Shell\n\r", &cmd_about}, |
4 | {"alias", " Allows the user view the current aliases\n\r", &cmd_alias}, |
4 | {"alias", " Allows the user view the current aliases\n\r", &cmd_alias}, |
5 | {"ccpuid", " Displays CPU information\n\r", &cmd_ccpuid}, |
5 | {"ccpuid", " Displays CPU information\n\r", &cmd_ccpuid}, |
6 | {"cd", " Changes current directory. Usage:\n\r cd |
6 | {"cd", " Changes current directory. Usage:\n\r cd |
7 | {"clear", " Clears the screen\n\r", &cmd_clear}, |
7 | {"clear", " Clears the screen\n\r", &cmd_clear}, |
8 | {"date", " Returns the current date and time\n\r", &cmd_date}, |
8 | {"date", " Returns the current date and time\n\r", &cmd_date}, |
9 | {"echo", " Echoes the data to the screen. Usage:\n\r echo \n\r", &cmd_echo}, |
9 | {"echo", " Echoes the data to the screen. Usage:\n\r echo \n\r", &cmd_echo}, |
10 | {"exit", " Exits from Shell\n\r", &cmd_exit}, |
10 | {"exit", " Exits from Shell\n\r", &cmd_exit}, |
11 | {"free", " Displays total, free and used memory\n\r", &cmd_memory}, |
11 | {"memory", " Displays total, free and used memory\n\r", &cmd_memory}, |
12 | {"help", " Gives help on commands. Usage:\n\r help ;it lists all builtins\n\r help |
12 | {"help", " Gives help on commands. Usage:\n\r help ;it lists all builtins\n\r help |
13 | {"history", " Lists used commands\n\r", &cmd_history}, |
- | 14 | {"kill", " Stops a running process. Usage:\n\r kill |
|
13 | {"kill", " Stops a running process. Usage:\n\r kill |
15 | {"killall", " Kills all running processes\n\r", &cmd_killall}, |
14 | {"killall", " Kills all running processes\n\r", &cmd_killall}, |
16 | {"ls", " Lists the files in a directory. Usage:\n\r ls ;lists the files in current directory\n\r ls |
15 | {"ls", " Lists the files in a directory. Usage:\n\r ls ;lists the files in current directory\n\r ls |
17 | {"mkdir", " Makes directory. Usage:\n\r mkdir |
16 | {"mkdir", " Makes directory. Usage:\n\r mkdir |
18 | {"more", " Displays a file data to the screen. Usage:\n\r more |
17 | {"more", " Displays a file data to the screen. Usage:\n\r more |
19 | {"ps", " Lists the current processes running\n\r", &cmd_ps}, |
18 | {"ps", " Lists the current processes running\n\r", &cmd_ps}, |
20 | {"pwd", " Displays the name of the working directory\n\r", &cmd_pwd}, |
19 | {"pwd", " Displays the name of the working directory\n\r", &cmd_pwd}, |
21 | {"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}, |
20 | {"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}, |
22 | {"rm", " Removes a file. Usage:\n\r rm file name>\n\r", &cmd_rm}, |
21 | {"rm", " Removes a file. Usage:\n\r rm file name>\n\r", &cmd_rm}, |
23 | {"rmdir", " Removes a folder. Usage:\n\r rmdir |
22 | {"rmdir", " Removes a folder. Usage:\n\r rmdir |
24 | {"shutdown"," Turns off the computer\n\r", &cmd_shutdown}, |
23 | {"sleep", " Stops the shell for the desired period. Usage:\n\r sleep |
- | |
24 | {"shutdown"," Turns off the computer\n\r", &cmd_shutdown}, |
25 | {"sleep", " Stops the shell for the desired period. Usage:\n\r sleep |
- | 26 | {"touch", " Creates an empty file or updates the time/date stamp on a file. Usage:\n\r touch |
|
25 | {"touch", " Creates an empty file or updates the time/date stamp on a file. Usage:\n\r touch |
27 | {"uptime", " Displays the uptime\n\r", &cmd_uptime}, |
26 | {"uptime", " Displays the uptime\n\r", &cmd_uptime}, |
28 | {"ver", " Displays version. Usage:\n\r ver ;Shell version\n\r ver kernel ;version of KolibriOS kernel\n\r", &cmd_ver}, |
27 | {"ver", " Displays version. Usage:\n\r ver ;Shell version\n\r ver kernel ;version of KolibriOS kernel\n\r", &cmd_ver}, |
29 | }; |
28 | }; |
30 | |
29 | 31 |