随笔分类 -  linux shell

上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 78 下一页
摘要:001、echo + xargs + cp实现 [root@pc1 data]# ls ## 测试目录及文件a.txt为测试文件, test01~04为测试目录,均为空目录 a.txt test01 test02 test03 test04 [root@pc1 data]# tree ## 利用tr 阅读全文
posted @ 2022-10-15 19:41 小鲨鱼2018 阅读(1298) 评论(0) 推荐(0)
摘要:001、 yum install libzip libzip-devel 阅读全文
posted @ 2022-10-14 15:50 小鲨鱼2018 阅读(357) 评论(0) 推荐(0)
摘要:001、 (base) [root@pc1 build]# cat /etc/redhat-release ## 系统 CentOS Linux release 7.6.1810 (Core) (base) [root@pc1 build]# cmake --version ## 当前cmake版本 阅读全文
posted @ 2022-10-14 15:12 小鲨鱼2018 阅读(1145) 评论(0) 推荐(0)
摘要:001、 [root@pc1 test3]# ls test.txt [root@pc1 test3]# cat test.txt ## 测试数据 addg ad adfgg d dfg [root@pc1 test3]# awk '{print length}' test.txt 4 2 5 1 阅读全文
posted @ 2022-10-14 09:41 小鲨鱼2018 阅读(1237) 评论(0) 推荐(0)
摘要:https://www.kernel.org/pub/software/scm/git 阅读全文
posted @ 2022-10-08 21:54 小鲨鱼2018 阅读(17) 评论(0) 推荐(0)
摘要:set -e选项保证程序的每一步都执行正确,如果前面一部程序执行错误,则直接退出程序 001、 不加 set -e的情况 (base) [root@PC1 test2]# ls test.sh (base) [root@PC1 test2]# cat test.sh #!/bin/bash xxxx 阅读全文
posted @ 2022-10-06 12:10 小鲨鱼2018 阅读(1171) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_40605511/article/details/122590227 https://blog.csdn.net/qq_40605511/article/details/122590227 阅读全文
posted @ 2022-10-05 11:33 小鲨鱼2018 阅读(46) 评论(0) 推荐(0)
摘要:001、问题 src/delly.h:8:42: fatal error: boost/graph/adjacency_list.hpp: No such file or directory 002、解决方法 (py37) [root@localhost delly-1.1.5]# yum inst 阅读全文
posted @ 2022-10-02 18:18 小鲨鱼2018 阅读(115) 评论(0) 推荐(0)
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、查看当前glibc版本 [root@localhost home]# ldd --version ldd (G 阅读全文
posted @ 2022-09-30 16:03 小鲨鱼2018 阅读(4403) 评论(0) 推荐(0)
摘要:001、 ldd --version 阅读全文
posted @ 2022-09-30 15:51 小鲨鱼2018 阅读(98) 评论(0) 推荐(0)
摘要:001、问题 002、解决方法 wget -c https://github.com/ldc-developers/ldc/releases/download/v1.30.0/ldc2-1.30.0-linux-x86_64.tar.xz tar -xJvf ldc2-1.30.0-linux-x8 阅读全文
posted @ 2022-09-30 15:48 小鲨鱼2018 阅读(69) 评论(0) 推荐(0)
摘要:001、系统 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前make版本 [root@localhost ~]# make --version GNU Make 3.82 阅读全文
posted @ 2022-09-30 15:47 小鲨鱼2018 阅读(3019) 评论(0) 推荐(1)
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前gcc 及 g++版本 [root@localhost home]# gcc --version gcc 阅读全文
posted @ 2022-09-30 11:44 小鲨鱼2018 阅读(1839) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试文件 SVLEN=-100 SVTYPE=DEL SVLEN=-62 SVTYPE=RPL NTLEN=25 HOMSEQ=G SVLEN=-100 SVTYPE=DEL 阅读全文
posted @ 2022-09-29 22:19 小鲨鱼2018 阅读(164) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试文件 243 fsab 989a 34b sa 1113 ab34 df3 add gabe kkkk abk [root@PC1 test]# sed 's/ /\n/g' 阅读全文
posted @ 2022-09-29 22:00 小鲨鱼2018 阅读(76) 评论(0) 推荐(0)
摘要:001、问题 (普通用户没有sudoer权限) 002、解决方法 [liujiaxin01@PC1 coreutils-8.32]$ su - root ## 切换至root用户 Password: Last login: Wed Sep 28 11:22:11 CST 2022 on pts/1 阅读全文
posted @ 2022-09-28 11:29 小鲨鱼2018 阅读(78) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt h d w q g d t [root@PC1 test]# sed -n "$a,$b"p a.txt ## 同时传入两个变量参数 d w q 阅读全文
posted @ 2022-09-26 12:11 小鲨鱼2018 阅读(239) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test]# ls 10.txt 1.txt 4.txt 7.txt a.txt [root@PC1 test]# rm -f {0..9}* ## 删除当前目录中所有以数字开头的文件 [root@PC1 test]# ls a.txt 阅读全文
posted @ 2022-09-26 11:40 小鲨鱼2018 阅读(676) 评论(0) 推荐(0)
摘要:在文件的行首添加一行。 001、 echo 实现 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试文件 a b c [root@PC1 test2]# echo "xxx" | cat - a.txt ## echo实现 xxx 阅读全文
posted @ 2022-09-26 11:06 小鲨鱼2018 阅读(7936) 评论(0) 推荐(0)
摘要:。。。 阅读全文
posted @ 2022-09-23 15:37 小鲨鱼2018 阅读(19) 评论(0) 推荐(0)

上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 78 下一页