Subversion Repositories Kolibri OS

Rev

Rev 8662 | Rev 9173 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2735 Albom 1
 
1668 Nasarus 2
{
3
	{"about",   "  Displays information about Shell\n\r", &cmd_about},
1669 Nasarus 4
	{"alias",   "  Allows the user view the current aliases\n\r", &cmd_alias},
5
	{"cd",      "  Changes current directory. Usage:\n\r    cd \n\r", &cmd_cd},
6
	{"clear",   "  Clears the screen\n\r", &cmd_clear},
7
	{"cp",      "  Copies file\n\r", &cmd_cp},
3245 Albom 8
	{"mv",      "  Moves file\n\r", &cmd_mv},
7802 rgimad 9
	{"ren",     "  Renames file\n\r", &cmd_ren},
10
	{"date",    "  Returns the current date and time\n\r", &cmd_date},
1669 Nasarus 11
	{"echo",    "  Echoes the data to the screen. Usage:\n\r    echo \n\r", &cmd_echo},
12
	{"exit",    "  Exits from Shell\n\r", &cmd_exit},
13
	{"free",    "  Displays total, free and used memory\n\r", &cmd_memory},
2735 Albom 14
	{"help",    "  Gives help on commands. Usage:\n\r    help ;it lists all builtins\n\r    help  ;help on command\n\r", &cmd_help},
1669 Nasarus 15
	{"history", "  Lists used commands\n\r", &cmd_history},
2735 Albom 16
	{"kfetch",  "  Prints logo and information about system.\n\r", &cmd_kfetch},
8827 rgimad 17
	{"kill",    "  Stops a running process. Usage:\n\r    kill \n\r    kill all\n\r", &cmd_kill},
3247 Albom 18
	{"pkill",   "  Kills all processes by name. Usage:\n\r    pkill \n\r", &cmd_pkill},
8662 turbocat 19
	{"ls",      "  Lists the files in a directory. Usage:\n\r    ls ;lists the files in current directory\n\r    ls  ;lists the files at specified folder\n\r    ls -1 ;lists the files in a single column\n\r", &cmd_ls},
7024 leency 20
	{"mkdir",   "  Makes directory. Usage:\n\r    mkdir  ;creates the folder in working directory\n\r    mkdir  ;create folder by specified path\n\r", &cmd_mkdir},
1669 Nasarus 21
	{"more",    "  Displays a file data to the screen. Usage:\n\r    more \n\r", &cmd_more},
22
	{"ps",      "  Lists the current processes running\n\r  or shows more info on  and save LASTPID\n\r", &cmd_ps},
6825 siemargl 23
	{"pwd",     "  Displays the name of the working directory\n\r", &cmd_pwd},
1669 Nasarus 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},
1807 Albom 25
	{"rm",      "  Removes a file. Usage:\n\r    rm file name>\n\r", &cmd_rm},
1669 Nasarus 26
	{"rmdir",   "  Removes a folder. Usage:\n\r    rmdir \n\r", &cmd_rmdir},
27
	{"shutdown","  Turns off the computer\n\r", &cmd_shutdown},
2735 Albom 28
	{"sleep",   "  Stops the shell for the desired period. Usage:\n\r    sleep 
1669 Nasarus 29
	{"touch",   "  Creates an empty file or updates the time/date stamp on a file. Usage:\n\r    touch \n\r", &cmd_touch},
30
	{"uptime",  "  Displays the uptime\n\r", &cmd_uptime},
1670 Nasarus 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},
3245 Albom 32
	{"waitfor", "  Stops console waiting while process finish. Usage:\n\r    waitfor ;waiting previous started executable LASTPID\n\r    waitfor ;awaiting PID finish\n\r", &cmd_waitfor},
6825 siemargl 33
};
2735 Albom 34
3247 Albom 35
 
8827 rgimad 36
#define CMD_CD_USAGE "  cd \n\r"
37
#define CMD_CP_USAGE "  cp  \n\r"
38
#define CMD_DATE_DATE_FMT "  Date [dd.mm.yy]: %x%x.%x%x.%x%x"
39
#define CMD_DATE_TIME_FMT "\n\r  Time [hh:mm:ss]: %x%x:%x%x:%x%x\n\r"
40
#define CMD_FREE_FMT "  Total [kB / MB / %%]:  %-7d / %-5d / 100\n\r   Free [kB / MB / %%]:  %-7d / %-5d / %d\n\r   Used [kB / MB / %%]:  %-7d / %-5d / %d\n\r"
41
#define CMD_HELP_AVAIL "  %d commands available:\n\r"
42
#define CMD_HELP_CMD_NOT_FOUND "  Command \'%s\' not found.\n\r"
43
44
 
45
#define CMD_MKDIR_USAGE "  mkdir \n\r"
46
#define CMD_MORE_USAGE "  more \n\r"
47
#define CMD_MV_USAGE "  mv  \n\r"
48
49
 
50
#define CMD_PKILL_KILL      "  PID: %u - killed\n"
51
#define CMD_PKILL_NOT_KILL  "  PID: %u - not killed\n"
52
#define CMD_PKILL_NOT_FOUND "  No processes with this name were found!\n"
53
54
 
55
#define CMD_RM_USAGE "  rm \n\r"
56
#define CMD_RMDIR_USAGE "  rmdir \n\r"
57
#define CMD_SLEEP_USAGE "    sleep 
58
#define CMD_TOUCH_USAGE "  touch \n\r"
59
#define CMD_UPTIME_FMT "  Uptime: %d day(s), %d:%d:%d.%d\n\r"
60
#define CMD_VER_FMT1 "  KolibriOS v%d.%d.%d.%d. Kernel SVN-rev.: %d\n\r"
61
#define CMD_WAITFOR_FMT "  Awaing finish PID %d\n\r"
62
#define EXEC_STARTED_FMT "  '%s' started. PID = %d\n\r"
63
#define EXEC_SCRIPT_ERROR_FMT "Error in '%s' : script must start with #SHS line\n\r"
64
#define UNKNOWN_CMD_ERROR "  Error!\n\r"
65
#define CON_APP_ERROR "  Error in console application.\n\r"
66
#define FILE_NOT_FOUND_ERROR "  File '%s' not found.\n\r"
67