1 2 3 4 5 ··· 367 下一页
摘要: 001、 简单测试 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 dfghghj hgfdwe [root@localhost test]# sed 'G' a.txt ## G在每一行添加空行 df 阅读全文
posted @ 2024-08-22 13:37 小鲨鱼2018 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 001、查看系统信息 [root@localhost ~]# hostnamectl Static hostname: localhost.localdomain Icon name: computer-vm Chassis: vm Machine ID: 0f5ac3970da4429fa028c 阅读全文
posted @ 2024-08-21 12:43 小鲨鱼2018 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 001、系统 [liujiaxin01@PC1 ~]$ cat /etc/redhat-release Rocky Linux release 8.10 (Green Obsidian) 002、下载安装包(下载的4.2.12版本) [liujiaxin01@PC1 aspera]$ wget -c 阅读全文
posted @ 2024-08-21 12:10 小鲨鱼2018 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 001、查看系统 [liujiaxin01@PC1 aspera]$ cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 002、下载安装包 [liujiaxin01@PC1 aspera]$ ls [liujiaxin01@PC 阅读全文
posted @ 2024-08-21 11:52 小鲨鱼2018 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int main(void) { double i; //声明double型 和 float型变量 float j; i = 3.14; j 阅读全文
posted @ 2024-08-19 23:35 小鲨鱼2018 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 001、a、%lf、和 %f读入double型值 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序 #include <stdio.h> int main(void) { double i, j; // 声明两个double 阅读全文
posted @ 2024-08-19 22:51 小鲨鱼2018 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 001、 测试%lf输出double型和int型变量的差异 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试c程序 #include <stdio.h> int main(void) { double i; /*声明doble型 阅读全文
posted @ 2024-08-19 21:54 小鲨鱼2018 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 001、读入整型数据 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试脚本 #include <stdio.h> int main(void) { int i; //声明整型变量 puts("please input an in 阅读全文
posted @ 2024-08-19 21:37 小鲨鱼2018 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 001、 sed实现 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 阅读全文
posted @ 2024-08-17 10:44 小鲨鱼2018 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 001、整型格式化输出浮点型 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c #include <stdio.h> int main(void) { double i; //定义浮点型变量 i = 5.8; printf("i = %d\ 阅读全文
posted @ 2024-08-14 10:58 小鲨鱼2018 阅读(1) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 367 下一页