上一页 1 ··· 146 147 148 149 150 151 152 153 154 ··· 403 下一页
摘要: 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 阅读(83) 评论(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 阅读(1843) 评论(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 阅读(209) 评论(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 阅读(2201) 评论(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 阅读(975) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt 1 2 3 4 5 6 7 8 9 10 [root@PC1 test]# head -n -3 a.txt ## 删除最后3行 1 2 3 4 5 6 7 002、 [root@PC 阅读全文
posted @ 2022-12-08 23:41 小鲨鱼2018 阅读(1458) 评论(0) 推荐(0)
摘要: 001、cat + wc -l [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试文件 1 2 3 4 5 6 7 8 9 10 [root@PC1 test]# cat a.txt | wc -l ## 输出文件的行数 10 002 阅读全文
posted @ 2022-12-08 23:34 小鲨鱼2018 阅读(283) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# ls [root@PC1 test]# mkdir test1 test2 ## 测试文件夹 [root@PC1 test]# echo "xxx" > test2/a.txt [root@PC1 test]# ls test1 test2 [root@P 阅读全文
posted @ 2022-12-08 23:17 小鲨鱼2018 阅读(926) 评论(0) 推荐(0)
摘要: 001、 -a 表示而且 [root@PC1 test]# a=5 [root@PC1 test]# b=10 [root@PC1 test]# if [ $a -gt 0 -a $b -gt 0 ]; then echo "yes"; fi ## -a表示逻辑而且,只有两边同时满足时才返回真 ye 阅读全文
posted @ 2022-12-08 23:08 小鲨鱼2018 阅读(755) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# a=10 [root@PC1 test]# echo $a 10 [root@PC1 test]# echo $b [root@PC1 test]# [ -z $a ] ## 如果变量没有被赋值,则返回真,否则返回假 [root@PC1 test]# ec 阅读全文
posted @ 2022-12-08 22:43 小鲨鱼2018 阅读(252) 评论(0) 推荐(0)
上一页 1 ··· 146 147 148 149 150 151 152 153 154 ··· 403 下一页