上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 367 下一页
摘要: 001、 [liujiaxin01@PC1 test]$ ls a.txt [liujiaxin01@PC1 test]$ cat a.txt ## xxx yy ## ddd ss ## kkk qqq ## mm nn 1 a A 7 2 b B 6 3 c C 5 4 d D 4 [liuji 阅读全文
posted @ 2022-12-24 13:20 小鲨鱼2018 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 001、 [liujiaxin01@PC1 test]$ ls a.txt [liujiaxin01@PC1 test]$ cat a.txt ## 测试数据 1 a A 7 2 b B 6 3 c C 5 4 d D 4 5 e E 3 6 f F 2 7 g G 1 [liujiaxin01@P 阅读全文
posted @ 2022-12-24 13:02 小鲨鱼2018 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: 001、 [liujiaxin01@PC1 test]$ ls a.txt b.txt [liujiaxin01@PC1 test]$ echo {a..e} ## 输出a-e的字母序列 a b c d e [liujiaxin01@PC1 test]$ echo {a..e} | tr " " " 阅读全文
posted @ 2022-12-24 12:43 小鲨鱼2018 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test]# ls [root@pc1 test]# var=mnopqrst ## 测试变量 [root@pc1 test]# echo $var ## 打印出该变量 mnopqrst [root@pc1 test]# echo ${var%qrst} ## 利用{} 阅读全文
posted @ 2022-12-24 09:42 小鲨鱼2018 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test3]# ls a.txt [root@pc1 test3]# cat a.txt ## 测试数据 a b c a b c a b c [root@pc1 test3]# sed '1,6 /a/d' a.txt ## 删除1-6行中,匹配a的行, 发现报错 se 阅读全文
posted @ 2022-12-23 15:17 小鲨鱼2018 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 001、测试数据 [root@pc1 test2]# ls a.fa [root@pc1 test2]# cat a.fa ## 测试数据 >chr1 ddtttggggg eeeeee >chr2 iiiiirrrr sssssssss >chr3 uuuuueeeee qqqqqqqqq >ch 阅读全文
posted @ 2022-12-23 14:56 小鲨鱼2018 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 一、卸载java1.8 001、查看系统 [root@pc1 home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、查看当前的java版本 [root@pc1 home]# java -version open 阅读全文
posted @ 2022-12-22 17:20 小鲨鱼2018 阅读(1593) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@pc1 test1]# start=$(date +%s) ## 记录程序的开始时间 [root@pc1 test1]# echo $start 1671529118 [root@pc1 test1]# end=$(date +%s) ## 记录程序的结束时间 [root@pc 阅读全文
posted @ 2022-12-20 09:41 小鲨鱼2018 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 001、查找在过去五分钟内修改过的文件 find ./ -mmin -5 002、查找在过去10分钟内修改过的文件 find ./ -mmin -10 003、查找在过去一天内修改过的文件 find ./ -mtime -1 004、查找在过去10天内修改过的文件 find ./ -mtime -1 阅读全文
posted @ 2022-12-20 09:37 小鲨鱼2018 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 7 yy 2 gg 4 mm 6 kk 5 mm 3 aa 9 xx 1 uu 8 oo [root@PC1 test]# cp a.txt a.txt_bak ## 阅读全文
posted @ 2022-12-16 19:53 小鲨鱼2018 阅读(886) 评论(0) 推荐(0) 编辑
上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 367 下一页