随笔分类 - linux shell
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试文本 01 02 03 04 09 10 11 12 13 14 15 16 17 18 19 20 [root@PC1 test]# cat -A a.txt ## 输出空
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试文本 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 [root@PC1 test]# grep "
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试文本 01 02 03 04 05 06 07 08 09 10 11 12 [root@localhost test]# sed -n '1,${p
阅读全文
摘要:001、利用awk实现 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 生成一个测试文本 01 02 03 04 05 06 07 08 09 10 11 12 [root@localhost test]# aw
阅读全文
摘要:Linux 中 如何将文本每行中最后一个出现的指定字符替换为特定的字符 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 01 02k 03k k04 05 06 07 08 09k 10 11k 12 13 14k
阅读全文
摘要:Linux 中 sed命令的反向选择 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试文本 01 02_mn 03 04 05 06 07 08 09 10 11_abc 12 13 14 15_abc 16 17 18_
阅读全文
摘要:001、 [root@localhost test]# ls [root@localhost test]# seq 10 > a.txt [root@localhost test]# ls a.txt [root@localhost test]# openssl enc -aes-256-cbc -
阅读全文
摘要:001、 [root@localhost test]# ls [root@localhost test]# seq 10 > a.txt ## 测试文件 [root@localhost test]# ls a.txt [root@localhost test]# md5sum a.txt > xxx
阅读全文
摘要:001、 [b20223040323@admin2 test10]$ ls test.c [b20223040323@admin2 test10]$ cat test.c ## 源代码 #include <stdio.h> int main(void) { printf("hello world\n
阅读全文
摘要:001、Linux 中 find命令指定多目录查找文件 [root@PC1 test]# find /lib -name "libc.so.6" ## 单目录 [root@PC1 test]# find /lib /usr/lib /usr/lib64 -name "libc.so.6" ## 指定
阅读全文
摘要:如何理解Linux 系统中一切皆是文件?
阅读全文
摘要:001、boot:启动文件 002、dev: 设备文件 003、etc:配置文件 004、home:用于家目录 005、lib:共享库; lib64共享库;lib 和 lib64 都是存放“共享库(.so)”的目录,区别主要在于支持的 CPU 架构位数不同;lib存放 32 位程序使用的共享库;li
阅读全文
摘要:Linux 中动态链接库和静态链接库的区别与联系 001、名称差异 静态库:.a 动态库:.so 002、核心区别: 一、基本定义(一句话版) ✅ 静态链接库(Static Library) 在链接阶段被完整拷贝进可执行文件 常见文件名:libxxx.a ✅ 动态链接库(Shared / Dynam
阅读全文
摘要:001、 基础用法 [root@localhost test]# printf "%s\n" "hello" ##输出字符串hello hello 002、指定输出字符串宽度 [root@localhost test]# printf "%s\n" "hello" hello [root@local
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试文本 a 01 02 03 04 a 05 02 07 08 a 09 10 11 12 a 13 14 15 16 b 17 18 19 20 b
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试文本 gene mRNA exon exon exon exon exon exon exon CDS CDS CDS CDS exon CDS ge
阅读全文
摘要:001、gzip [root@PC1 test]# ls a.txt [root@PC1 test]# ll -h total 39M -rw-r--r--. 1 root root 39M Dec 7 11:28 a.txt [root@PC1 test]# gzip -c a.txt > a.t
阅读全文
摘要:gzip、pigz、zstd压缩率、运算时间对比 001、 测试数据 (base) [b20223040323@admin2 test]$ ll -h 总用量 856M -rw-rw-r-- 1 b20223040323 b20223040323 428M 12月 2 15:18 SRR177041
阅读全文
摘要:001、 测试文件 (base) [b20223040323@admin2 test]$ du -ch *.fastq3.4G SRR33287865_1.fastq 002、gzip gzip -c SRR33287865_1.fastq Elapsed time: 238 003、pigz pi
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 aaaaaa bbbbbb cccccc dddddd [root@PC1 test]# cat -A a.txt ## 包含多种形式的空行 aaaaaa$ bbbbb
阅读全文

浙公网安备 33010602011771号