随笔分类 -  linux shell

上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 77 下一页
摘要:001、系统 [root@PC1 software]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noa 阅读全文
posted @ 2023-07-17 15:35 小鲨鱼2018 阅读(1548) 评论(0) 推荐(0)
摘要:001、gcc 编译器在编译安装的时候报错:collect2: error: ld terminated with signal 9 [Killed] [root@PC1 build]# make -j4 ## 编译安装c编译器gcc-13.1.0,报错如下: 002、报错原因及解决方法 swap内 阅读全文
posted @ 2023-07-17 11:07 小鲨鱼2018 阅读(930) 评论(0) 推荐(0)
摘要:001、 ll 只能显示日期 [root@PC1 test01]# ls a.txt [root@PC1 test01]# ll ## ll命令显示日期 total 4 -rw-r--r--. 1 root root 21 Jul 17 16:51 a.txt 002、stat显示完整的日期 [ro 阅读全文
posted @ 2023-07-17 08:59 小鲨鱼2018 阅读(2243) 评论(0) 推荐(0)
摘要:001、官网下载: https://ftp.gnu.org/gnu/make/ 002、查看当前的make版本及系统版本 a、make版本 [root@PC1 ~]# make --version GNU Make 3.82 Built for x86_64-redhat-linux-gnu Cop 阅读全文
posted @ 2023-07-16 10:56 小鲨鱼2018 阅读(1164) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test01]# ls [root@PC1 test01]# seq 5 > a.txt; seq 3 > b.txt ## 生成测试数据 [root@PC1 test01]# ls a.txt b.txt [root@PC1 test01]# md5sum b.txt 阅读全文
posted @ 2023-07-15 21:01 小鲨鱼2018 阅读(214) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test01]# ls ## 测试文件 a.txt.gz [root@PC1 test01]# gzip -dc a.txt.gz > a.txt ## 解压,同时保留源文件 [root@PC1 test01]# ls a.txt a.txt.gz [root@PC1 阅读全文
posted @ 2023-07-15 20:53 小鲨鱼2018 阅读(205) 评论(0) 推荐(0)
摘要:001、幂函数(即e的多少次方) [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 9 1 2 10 [root@PC1 test02]# awk '{print exp($1)}' a.txt ## 幂函数 8103. 阅读全文
posted @ 2023-07-13 21:35 小鲨鱼2018 阅读(222) 评论(0) 推荐(0)
摘要:001、asort函数 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ggg 666 aaa 125 ddd 123 kkk 777 bbb 128 fff 999 ccc 120 [root@PC1 test01]# awk '{ 阅读全文
posted @ 2023-07-13 20:42 小鲨鱼2018 阅读(133) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test01]# ls test.txt [root@PC1 test01]# cat -A test.txt ## 存在特殊字符 M-cM-^@M-^@M-cM-^@M-^@ TomM-cM-^@M-^@M-cM-^@M-^@ 2012-12-11 car 53000 阅读全文
posted @ 2023-07-13 15:46 小鲨鱼2018 阅读(55) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试数据 34gfjfgax gd;g3;54;66;77 sfdgfghcg ljhg9;875gf wr346dxzc mbkbczxdwa [root@PC1 te 阅读全文
posted @ 2023-07-13 08:39 小鲨鱼2018 阅读(289) 评论(0) 推荐(0)
摘要:substr命令用于截取字符串 001、 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试数据 34gfjfgax gdg3546677 sfdgfghcg ljhg9875gf wr346dxzc mbkbczxdwa [ 阅读全文
posted @ 2023-07-13 08:20 小鲨鱼2018 阅读(442) 评论(0) 推荐(0)
摘要:001、 awk数组实现 [root@PC1 test01]# ls a.txt [root@PC1 test01]# cat a.txt ## 测试数据 ERR219543 Africa ERR219546 kkkk ERR229467 qqqq ERR229468 qqqq ERR229471 阅读全文
posted @ 2023-07-12 23:35 小鲨鱼2018 阅读(67) 评论(0) 推荐(0)
摘要:001、常规删除方法 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 ## str1 01 02 03 04 05 06 07 08 ## 09 10 11 12 13 14 15 16 17 18 19 20 ## 阅读全文
posted @ 2023-07-11 23:55 小鲨鱼2018 阅读(326) 评论(0) 推荐(0)
摘要:001、awk实现 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 阅读全文
posted @ 2023-07-11 23:03 小鲨鱼2018 阅读(101) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 [root@PC1 test02]# sed ':a; N; s/\n/ /; ta' a.txt 阅读全文
posted @ 2023-07-11 21:13 小鲨鱼2018 阅读(169) 评论(0) 推荐(0)
摘要:ls -F 选项在输出项追加文件的类型标识符。 例如: 001、 [root@PC1 test02]# ls ## 测试文件 test test01.txt test02.txt test03.txt test04.txt xxx001.ped xxx003.ped test01.csv test0 阅读全文
posted @ 2023-07-11 17:52 小鲨鱼2018 阅读(188) 评论(0) 推荐(0)
摘要:break是跳出循环exit是退出脚本。 看下面的例子。 001、break [root@PC1 test02]# cat test.txt ## 测试数据 3 4 5 6 7 [root@PC1 test02]# cat test.sh ## 测试程序 #!/bin/bash for i in $ 阅读全文
posted @ 2023-07-10 15:45 小鲨鱼2018 阅读(130) 评论(0) 推荐(0)
摘要:001、 sed实现 [root@PC1 test02]# ls a.txt [root@PC1 test02]# cat a.txt ## 测试数据 01 02 05 06 x 09 10 44 66 33 77 13 14 17 18 k 21 22 88 99 25 26 21 22 x 25 阅读全文
posted @ 2023-07-07 11:11 小鲨鱼2018 阅读(135) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test03]# ls file.txt [root@PC1 test03]# cat file.txt ## 测试数据 match random text line 1 match match match random text line 2 match random 阅读全文
posted @ 2023-07-07 10:35 小鲨鱼2018 阅读(34) 评论(0) 推荐(0)
摘要:001、 (base) [b20223040323@admin2 test]$ ls a.txt (base) [b20223040323@admin2 test]$ cat a.txt ## 测试数据 gene exon exon exon exon gene exon exon gene exo 阅读全文
posted @ 2023-07-07 08:48 小鲨鱼2018 阅读(27) 评论(0) 推荐(0)

上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 77 下一页