随笔分类 -  linux shell

上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 77 下一页
摘要:001、问题src/delly.h:8:10: fatal error: boost/graph/adjacency_list.hpp: No such file or directory 002、解决方法, 安装boost库 Linux下boost库的编译及安装:https://www.cnblo 阅读全文
posted @ 2022-09-18 11:45 小鲨鱼2018 阅读(288) 评论(0) 推荐(0)
摘要:001、下载地址 https://www.boost.org/users/download/ 002、 tar -xzvf boost_1_80_0.tar.gz 003、 编译安装 cd boost_1_80_0/ ./bootstrap.sh --with-libraries=all --wit 阅读全文
posted @ 2022-09-18 11:42 小鲨鱼2018 阅读(381) 评论(0) 推荐(0)
摘要:001、 root@ubuntu01:/home# dpkg -l 002、过滤特定的包 root@ubuntu01:/home# dpkg -l | grep "vim" ii vim 2:8.2.3995-1ubuntu2 amd64 Vi IMproved - enhanced vi edit 阅读全文
posted @ 2022-09-16 17:09 小鲨鱼2018 阅读(273) 评论(0) 推荐(0)
摘要:001、提取前半部分 root@ubuntu01:/home/test2# cat a.txt ## 测试数据 1 2 3 4 5 6 7 8 9 10 root@ubuntu01:/home/test2# sed -n "1, $(expr $(sed -n "$=" a.txt) / 2)p" 阅读全文
posted @ 2022-09-16 12:01 小鲨鱼2018 阅读(637) 评论(0) 推荐(0)
摘要:001、问题 root@ubuntu01:/home# ping www.baidu.com ## 测试网络连通性, 无法解析域名 ping: www.baidu.com: Temporary failure in name resolution 002、修改DNS配置文件 root@ubuntu0 阅读全文
posted @ 2022-09-15 11:27 小鲨鱼2018 阅读(5643) 评论(0) 推荐(0)
摘要:001、c编译器 root@ubuntu01:/home/test# gcc --version gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 Copyright (C) 2021 Free Software Foundation, Inc. This is f 阅读全文
posted @ 2022-09-15 10:04 小鲨鱼2018 阅读(6444) 评论(0) 推荐(0)
摘要:001、bc实现 root@ubuntu01:/home/test# bc ## 在终端直接输入bc命令 bc 1.07.1 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Founda 阅读全文
posted @ 2022-09-15 09:29 小鲨鱼2018 阅读(325) 评论(0) 推荐(0)
摘要:001、判断一组依次递增的数据 [root@PC1 test2]# cat a.txt ## 测试数据 3 4 5 6 7 8 9 [root@PC1 test2]# awk 'BEGIN{temp = 0} { if(NR > 1 && ($1 - temp) != 1) {print NR,"x 阅读全文
posted @ 2022-09-14 09:14 小鲨鱼2018 阅读(25) 评论(0) 推荐(0)
摘要:001、查看一下当前系统 [root@PC1 home]# hostnamectl Static hostname: PC1 Icon name: computer Chassis: n/a Machine ID: 8f7f58c7ef6f42489c3251e9f474be72 Boot ID: 阅读全文
posted @ 2022-09-13 23:46 小鲨鱼2018 阅读(36) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test]# df -h ## 查看各个挂载点的大小 Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel-root 46G 4.3G 42G 10% / devtmpfs 1.9G 0 1.9G 0% 阅读全文
posted @ 2022-09-13 23:22 小鲨鱼2018 阅读(2771) 评论(0) 推荐(0)
摘要:001、ls + sed + awk实现 root@PC1:/home/req/input/E.coli/fastq# ls SRR1770413_1.fastq.gz SRR1770413_2.fastq.gz root@PC1:/home/req/input/E.coli/fastq# ls | 阅读全文
posted @ 2022-09-12 19:01 小鲨鱼2018 阅读(1123) 评论(0) 推荐(0)
摘要:001、wc -c 命令: 统计字符数 root@PC1:/home/req/input/test# ls a.txt root@PC1:/home/req/input/test# cat a.txt ## 测试文件 aa bb cc dd ee ff root@PC1:/home/req/inpu 阅读全文
posted @ 2022-09-12 14:58 小鲨鱼2018 阅读(843) 评论(0) 推荐(0)
摘要:001、 root@PC1:/home/test3# ls root@PC1:/home/test3# seq 1000 > a.txt ## 生成一个测试文件 root@PC1:/home/test3# ls a.txt root@PC1:/home/test3# sha1sum a.txt ## 阅读全文
posted @ 2022-09-11 17:13 小鲨鱼2018 阅读(207) 评论(0) 推荐(0)
摘要:001、测试1 root@PC1:/home/test# ls ## 3个测试文件 a.txt b.txt c.txt root@PC1:/home/test# cat a.txt a j 6 b d j root@PC1:/home/test# cat b.txt 3 7 k j x v root 阅读全文
posted @ 2022-09-09 18:08 小鲨鱼2018 阅读(152) 评论(0) 推荐(0)
摘要:001、 root@PC1:/home/test# ls ## 3个测试文件 a.txt b.txt c.txt root@PC1:/home/test# cat a.txt a j 6 b d j root@PC1:/home/test# cat b.txt 3 7 k j x v root@PC 阅读全文
posted @ 2022-09-09 17:58 小鲨鱼2018 阅读(236) 评论(0) 推荐(0)
摘要:001、查看系统 [root@PC1 test]# hostnamectl Static hostname: PC1 Icon name: computer Chassis: n/a Machine ID: 1739a8a8e564458e93c6b2f64619a348 Boot ID: b1cc 阅读全文
posted @ 2022-09-07 16:56 小鲨鱼2018 阅读(550) 评论(0) 推荐(0)
摘要:001、问题 root@PC1:/home/test3# ping www.baidu.com ping: www.baidu.com: Temporary failure in name resolution 002、解决方法(修改DNS服务配置文件) vim /etc/resolv.conf # 阅读全文
posted @ 2022-09-06 10:04 小鲨鱼2018 阅读(9046) 评论(0) 推荐(0)
摘要:001、 free -h 002、 cat /proc/meminfo 阅读全文
posted @ 2022-09-05 10:32 小鲨鱼2018 阅读(566) 评论(0) 推荐(0)
摘要:001、 设置高亮显示:set hlsearch 取消高亮显示:set nosearch 002、 忽略大小写:set ignorecase 阅读全文
posted @ 2022-09-01 21:46 小鲨鱼2018 阅读(380) 评论(0) 推荐(0)
摘要:001、 (base) root@PC1:/home/test3# ls (base) root@PC1:/home/test3# echo "xx" xx (base) root@PC1:/home/test3# echo -n "xx" ## echo -n 实现输出字符串,但是不输出换行符 x 阅读全文
posted @ 2022-08-25 22:02 小鲨鱼2018 阅读(234) 评论(0) 推荐(0)

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