随笔分类 - linux shell
摘要:001、echo + xargs + cp实现 [root@pc1 data]# ls ## 测试目录及文件a.txt为测试文件, test01~04为测试目录,均为空目录 a.txt test01 test02 test03 test04 [root@pc1 data]# tree ## 利用tr
阅读全文
摘要:001、 yum install libzip libzip-devel
阅读全文
摘要:001、 (base) [root@pc1 build]# cat /etc/redhat-release ## 系统 CentOS Linux release 7.6.1810 (Core) (base) [root@pc1 build]# cmake --version ## 当前cmake版本
阅读全文
摘要: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
阅读全文
摘要:https://www.kernel.org/pub/software/scm/git
阅读全文
摘要:set -e选项保证程序的每一步都执行正确,如果前面一部程序执行错误,则直接退出程序 001、 不加 set -e的情况 (base) [root@PC1 test2]# ls test.sh (base) [root@PC1 test2]# cat test.sh #!/bin/bash xxxx
阅读全文
摘要:https://blog.csdn.net/qq_40605511/article/details/122590227 https://blog.csdn.net/qq_40605511/article/details/122590227
阅读全文
摘要: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
阅读全文
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、查看当前glibc版本 [root@localhost home]# ldd --version ldd (G
阅读全文
摘要: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
阅读全文
摘要:001、系统 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前make版本 [root@localhost ~]# make --version GNU Make 3.82
阅读全文
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前gcc 及 g++版本 [root@localhost home]# gcc --version gcc
阅读全文
摘要: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
阅读全文
摘要: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'
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:在文件的行首添加一行。 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
阅读全文

浙公网安备 33010602011771号