随笔分类 - linux shell
摘要:01、问题 02、ubuntu系统 root@DESKTOP-A31BQ38:/home/software# lsb_release -a 03、解决方法 root@DESKTOP-A31BQ38:/home/software# apt install bzip2 参考:https://blog.c
阅读全文
摘要:001、 (py38) root@DESKTOP-IDT9S0E:/home/test# ls a.txt index.txt record.sh (py38) root@DESKTOP-IDT9S0E:/home/test# cat a.txt ## 测试数据 01 02 03 04 05 06
阅读全文
摘要:001、 (py38) root@DESKTOP-IDT9S0E:/home/test# ls a.txt index.txt record.sh (py38) root@DESKTOP-IDT9S0E:/home/test# cat a.txt ## 测试数据 01 02 03 04 05 06
阅读全文
摘要:01、ubuntu系统: (py38) root@DESKTOP-IDT9S0E:/home/software/readfq# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubunt
阅读全文
摘要:001、 (py38) root@DESKTOP-IDT9S0E:/home/test# cat a.txt ## 测试数据 01 02 03 04 05 06 07 (py38) root@DESKTOP-IDT9S0E:/home/test# cat index.txt ## 计划批量删除的行号
阅读全文
摘要:001、 setfacl -m u:user2:r-x /public/home/user1 ## 授予user2对user1家目录的读和执行的权限 来源:劳老师 用户user1对用户user2授权访问例子:(1)授权user2可读写执行user1的家目录下的所有文件setfacl -m u:use
阅读全文
摘要:001、 (base) [b20223040323@admin1 test2]$ ls a.txt (base) [b20223040323@admin1 test2]$ cat a.txt ## 测试数目 6 8 9 3 7 5 2 5 6 8 8 2 4 2 7 (base) [b2022304
阅读全文
摘要:001、 (base) [b20223040323@admin1 test2]$ ls a.txt (base) [b20223040323@admin1 test2]$ cat a.txt ## 测试数据 er kj ab ab ab jk ab ab uy dd xy xy xy xy xy m
阅读全文
摘要:001、rev + cut -c实现 (base) [b20223040323@admin1 test]$ ls a.txt (base) [b20223040323@admin1 test]$ cat a.txt ## 测试数据 iuwe sdfdsf 2343 8dsfdj saff 32435
阅读全文
摘要:001、删除首次匹配字符及其之前的内容 root@DESKTOP-IDT9S0E:/home/test/test/test# ls a.txt root@DESKTOP-IDT9S0E:/home/test/test/test# cat a.txt ## 测试数据 awQQrQQ24QQ34QQr5
阅读全文
摘要:001、 root@DESKTOP-IDT9S0E:/home/test/test/test# str1="Homo_sapiens.GRCh38.99.chgffromosome.22.gff3" root@DESKTOP-IDT9S0E:/home/test/test/test# str2=${
阅读全文
摘要:001、dirname用于从绝对路径中剥离出路径 002、basename用于从绝对路径中剥离出文件名 测试: root@DESKTOP-IDT9S0E:~# ls root@DESKTOP-IDT9S0E:~# dirname /home/test2/a.sh ## dirname剥离出路径 /h
阅读全文
摘要:01、 systemctl enable ssh 02、 /lib/systemd/systemd-sysv-install enable ssh
阅读全文
摘要:001、将ab替换为QQ (base) [b20223040323@admin2 test2]$ ls a.txt (base) [b20223040323@admin2 test2]$ cat a.txt ## 测试数据 snp1 ab 1072 0 snp4 abde 392 0 snp5 ab
阅读全文
摘要:001、 (base) [b20223040323@admin1 test]$ ls a.txt b.txt (base) [b20223040323@admin1 test]$ cat a.txt ## 测试数据 GENE=3BHSD 1 1 GENE=A3GALT2 1 1 GENE=A1BG
阅读全文
摘要:今天遇到一个小问题,要提取文件的行首和行尾指定的行数, 不想生成中间文件, 一时没有想出来怎么处理,后来想到一个组合命令实现。如下: 001、 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试数据 01 02 03 04 05
阅读全文
摘要:001、 [root@PC1 test]# ls a.txt b.txt [root@PC1 test]# cat a.txt ## 测试数据a.txt gene exon gene exon exon exon exon [root@PC1 test]# awk 'BEGIN{idx=0} {if
阅读全文
摘要:001、yum安装软件出现如下报错 002、其中的一个原因是 python的版本造成的,即将系统默认调用的python有python2改用了python3, 而yum命令兼容的python版本是python2,因此解决方法是将yum调用的python改为2,及修改yum下载器中的python调用路径
阅读全文
摘要:001、系统为centos7.6 [root@PC1 test]# cat /etc/system-release CentOS Linux release 7.6.1810 (Core) 002、默认可以调用的python版本为2.7 [root@PC1 test]# python --versi
阅读全文
摘要:001、 系统 root@ubuntu01:/etc/netplan# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04
阅读全文

浙公网安备 33010602011771号