help.c
来自「Linux内核监控工具。 Linux内核监控工具。 Linux内核监控工具。」· C语言 代码 · 共 53 行
C
53 行
/************************************************************************** help.c - description ------------------- begin : Tue Dec 5 22:08:03 EET 2000 copyright : (C) 2000-2002 by Petri Turunen email : petri.turunen@pete.fi.eu.org ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifdef HAVE_CONFIG_H#include <config.h>#endif#include<stdio.h>#include"linux_mond.h"void show_menu(int n){switch(n){ case 1: printf("Linux Monitor Server\n"); printf("Version: %s\n",VERSION); break; case 2: printf("Usage: linux_mond [option] config.file\n"); printf("\n"); printf("Example: linux_mon -p 2000 linux_mond.cfg\n\n"); printf("Main operation mode:\n"); printf("\n"); printf("-p port port to listen.\n"); printf("-V shows version info.\n"); printf("-q report only errors.\n"); printf("-s write errors to syslog(Default on).\n");#ifdef HAVE_SQL printf("-D report errors to database.\n");#endif printf("-h shows this help.\n"); break;}}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?