码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
C 语言实例 - 求一个整数的所有因数。
假如a*b=c(a、b、c都是整数),那么我们称a和b就是c的因数。 #include <stdio.h>int main(){ int number, i; printf("输入一个整数: "); scanf("%d",&number); printf("%d 的因数有: ", number); ...
分类:编程语言   时间:2020-01-04 22:01:40    阅读次数:309
c++ 反汇编 除法优化
接上篇:《C++反汇编与逆向分析技术揭秘》--算术运算和赋值 printf("argc / 4 = %d\n", argc / 4); printf("argc / 5 = %d\n", argc / 5); printf("argc / 7 = %d\n", argc / 7); printf(" ...
分类:编程语言   时间:2020-01-04 20:51:14    阅读次数:122
Linux shell 指令操作
文档:Linux常用工作命令.链接:http://note.youdao.com/noteshare?id=bda746ca54e83e84659cb0954bff887e&sub=A60A35564EF2481EBB86974B09448C8B 文档:常用检测命令链接:http://note.yo ...
分类:系统相关   时间:2020-01-04 20:10:59    阅读次数:145
docker-compose部署lnmp环境
docker-compose.yml配置文件如下 version: "2" services: nginx: image: nginx:alpine container_name: my-nginx ports: - "80:80" - "443:443" volumes: - ./conf/ngi ...
分类:其他好文   时间:2020-01-04 18:49:32    阅读次数:445
C 语言实例 - 判断素数。
质数(prime number)又称素数,有无限个。质数定义为在大于1的自然数中,除了1和它本身以外不再有其他因数,这样的数称为质数。 #include <stdio.h>int main(){ int n, i, flag = 0; printf("输入一个正整数: "); scanf("%d", ...
分类:编程语言   时间:2020-01-04 18:43:28    阅读次数:119
codeup-日期差值
1928: 日期差值 Time Limit: 1 Sec Memory Limit: 32 MBSubmit: 10033 Solved: 2267[Submit][Status][Web Board][Creator:Imported] Description 有两个日期,求两个日期之间的天数,如 ...
分类:其他好文   时间:2020-01-04 18:22:14    阅读次数:73
shell curl 参数
用途: 通过http、ftp等方式下载文件,或者是上传文件 和 wget类似 1. 实例 测试 网络 可以通过 man 参数查询curl参数的具体使用 [root@localhost ~]# man curl -a/--append 上传文件时,附加到目标文件 -A/--user-agent <st ...
分类:Web程序   时间:2020-01-04 16:47:20    阅读次数:101
shell编程题(十五)
题目: 文件移动拷贝,有m1.txt m2.txt m3.txt m4.txt,分别创建出对应的目录,m1 m2 m3 m4 并把文件移动到对应的目录下。 答案: #!/bin/bash touch m1.txt m2.txt m3.txt m4.txt I=1 while [ $I -le 4 ] ...
分类:系统相关   时间:2020-01-04 16:15:47    阅读次数:90
Linux 命令别名 alias永久生效
在linux下为了更方便的输入命令,代替复杂的命令组合,可以使用alias来实现,但alias只能是当前有效,在退出bath后,刚设定的alias命令别名也就消失了。 如何才能永久使用了?请看下面: 首先如果想让别名能够在不同的shell会话中使用,就需要把它们添加到shell用来保存别名的文件中。 ...
分类:系统相关   时间:2020-01-04 14:26:49    阅读次数:199
shell脚本2待更新
第二天:1.while循环,例 #!/bin/bashi=1sum=0while [ i -lt 100 ]do ((i++)) sum=$sum+$idone2.函数hello(){ echo "hello" }调用函数:hello不需要括号3.函数传递参数hello(){echo "diyige ...
分类:系统相关   时间:2020-01-04 12:38:31    阅读次数:82
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!