Subversion Repositories Kolibri OS

Rev

Rev 8662 | Rev 9173 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8662 Rev 8827
Line 12... Line 12...
12
	{"exit",    "  Exits from Shell\n\r", &cmd_exit},
12
	{"exit",    "  Exits from Shell\n\r", &cmd_exit},
13
	{"free",    "  Displays total, free and used memory\n\r", &cmd_memory},
13
	{"free",    "  Displays total, free and used memory\n\r", &cmd_memory},
14
	{"help",    "  Gives help on commands. Usage:\n\r    help ;it lists all builtins\n\r    help  ;help on command\n\r", &cmd_help},
14
	{"help",    "  Gives help on commands. Usage:\n\r    help ;it lists all builtins\n\r    help  ;help on command\n\r", &cmd_help},
15
	{"history", "  Lists used commands\n\r", &cmd_history},	
15
	{"history", "  Lists used commands\n\r", &cmd_history},	
16
	{"kill",    "  Stops a running process. Usage:\n\r    kill \n\r    kill all\n\r", &cmd_kill},
16
	{"kfetch",  "  Prints logo and information about system.\n\r", &cmd_kfetch},
-
 
17
	{"kill",    "  Stops a running process. Usage:\n\r    kill \n\r    kill all\n\r", &cmd_kill},
17
	{"pkill",   "  Kills all processes by name. Usage:\n\r    pkill \n\r", &cmd_pkill},
18
	{"pkill",   "  Kills all processes by name. Usage:\n\r    pkill \n\r", &cmd_pkill},
18
	{"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},
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},
19
	{"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},
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},
20
	{"more",    "  Displays a file data to the screen. Usage:\n\r    more \n\r", &cmd_more},
21
	{"more",    "  Displays a file data to the screen. Usage:\n\r    more \n\r", &cmd_more},
21
	{"ps",      "  Lists the current processes running\n\r  or shows more info on  and save LASTPID\n\r", &cmd_ps},
22
	{"ps",      "  Lists the current processes running\n\r  or shows more info on  and save LASTPID\n\r", &cmd_ps},
Line 30... Line 31...
30
	{"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},
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},
31
	{"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},
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},
32
};
33
};
33
34
 
Line -... Line 35...
-
 
35
#define CMD_ABOUT_MSG "Shell %s\n\r"
-
 
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
#define CMD_KILL_USAGE "  kill \n\r"
-
 
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
#define CMD_PKILL_HELP      "  pkill \n\r"
-
 
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
#define CMD_REN_USAGE "  ren  \n\r"
-
 
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"