linux
哆啦AAAAA梦a
这个作者很懒,什么都没留下…
展开
-
函数getopt(),及其参数optind
getopt被用来解析命令行选项参数。#include extern char *optarg; //选项的参数指针 extern int optind, //下一次调用getopt的时,从optind存储的位置处重新开始检查选项。 extern int opterr, //当opterr=0时,getopt不向stderr输出错转载 2016-11-02 15:44:39 · 419 阅读 · 0 评论 -
Linux ssh断开问题及diff和sed命令学习
最近在修改ssh连接超时问题,又顺便学了几个命令,以修改ssh连接为例:方法一:cd /etc/ssh查看sshd_config文本中的一些关键词:grep ClientAlive sshd_config(如果没有可以在文本中加入#ClientAliveInterval 0#ClientAliveCountMax 3)做个备份吧:cp sshd_config ssh...原创 2018-12-24 14:03:08 · 338 阅读 · 0 评论