随笔分类 -  linux shell

上一页 1 2 3 4 5 6 7 ··· 77 下一页
摘要:001、问题 002、解决方法: 下载安装包: https://ctan.org/tex-archive/support/epstopdf 003、 unzip epstopdf.zip cd epstopdf/ cp epstopdf.pl epstopdf.pl_backup mv epstop 阅读全文
posted @ 2025-04-11 09:32 小鲨鱼2018 阅读(73) 评论(0) 推荐(0)
摘要:001、问题 (base) [root@PC1 ~]# epstopdf --version bash: epstopdf: command not found... (base) [root@PC1 ~]# epstopdf bash: epstopdf: command not found... 阅读全文
posted @ 2025-04-09 17:27 小鲨鱼2018 阅读(36) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 adf.3 ss.rr.fff.43 aa.rr.ee.44.ee.56 [root@PC1 test]# sed 's/\S[^.]\+$//' a.txt ## 匹 阅读全文
posted @ 2025-04-08 15:00 小鲨鱼2018 阅读(113) 评论(0) 推荐(0)
摘要:001、 [sy20213040737@admin2 zzz_test]$ ls a.txt [sy20213040737@admin2 zzz_test]$ cat a.txt aa bb cc [sy20213040737@admin2 zzz_test]$ cat a.txt | xargs 阅读全文
posted @ 2025-04-08 11:29 小鲨鱼2018 阅读(13) 评论(0) 推荐(0)
摘要:001、问题 基于setfacl 对特定用户开放读写权限失败 setfacl -m u:liujiaxin02:r-x $HOME; 开放了读写的权限,但是仍然显示无法读取; 002、问题原因及解决方法 开放权限的用户本人的家目录没有开放读和执行的权限,要想setfacl生效,首先开放权限用户本身应 阅读全文
posted @ 2025-04-07 14:51 小鲨鱼2018 阅读(35) 评论(0) 推荐(0)
摘要:001、 (base) [root@PC1 test]# lstest.sh(base) [root@PC1 test]# cat test.sh#!/bin/bash # 启动三个后台进程 echo hello world &sleep 20 &seq 10000000000 > a.txt & 阅读全文
posted @ 2025-04-07 10:10 小鲨鱼2018 阅读(38) 评论(0) 推荐(0)
摘要:001、 ‌sort命令的-g选项用于按照通用数值进行排序。 阅读全文
posted @ 2025-04-06 22:28 小鲨鱼2018 阅读(12) 评论(0) 推荐(0)
摘要:001、问题: No match for argument: GConf2 Error: Unable to find a match: GConf2 002、解决方法: dnf install epel-release -y 阅读全文
posted @ 2025-03-31 12:01 小鲨鱼2018 阅读(43) 评论(0) 推荐(0)
摘要:001、Linux 中 求每一行数据的和 [b20223040323@admin2 test]$ ls a.txt [b20223040323@admin2 test]$ cat a.txt ## 测试数据 1 2 3 4 5 6 7 8 9 10 11 12 [b20223040323@admin 阅读全文
posted @ 2025-03-19 17:08 小鲨鱼2018 阅读(32) 评论(0) 推荐(0)
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 00_3 8834 1b_kk ffaa 55_f3_34 8834 aa_bb_kk_44 44aa [root@localhost test 阅读全文
posted @ 2025-03-15 01:05 小鲨鱼2018 阅读(18) 评论(0) 推荐(0)
摘要:001、linux shell中如何实现矩阵文件按照某一列的指定顺序排序 [s20213040583@admin2 test]$ ls a.txt idx.txt [s20213040583@admin2 test]$ cat a.txt ## 测试数据 d 100 888 c 666 999 a 阅读全文
posted @ 2025-03-13 15:15 小鲨鱼2018 阅读(16) 评论(0) 推荐(0)
摘要:001、Linux 中 如何区分文本使用空格还是制表符分割 [root@PC1 test]# ls a.txt b.txt [root@PC1 test]# cat a.txt ## 测试数据 空格分割 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 阅读全文
posted @ 2025-03-13 11:43 小鲨鱼2018 阅读(29) 评论(0) 推荐(0)
摘要:001、实例如下: (base) [b20223040323@admin2 test]$ ls a.txt (base) [b20223040323@admin2 test]$ cat a.txt ## 测试数据, 第一列又两类重复 aa 11 bb 89 aa 77 kk 66 aa 88 kk 阅读全文
posted @ 2025-03-11 16:13 小鲨鱼2018 阅读(60) 评论(0) 推荐(0)
摘要:001、删除第9个字段gene_id前边的所有内容 [b20223040323@admin2 test]$ ls a.txt [b20223040323@admin2 test]$ cat a.txt ## 测试数据 NC_089035.1 Gnomon transcript 7328 15219 阅读全文
posted @ 2025-03-11 11:26 小鲨鱼2018 阅读(49) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test]# echo ${array1[*]} 100 aaa xxxYYY [root@PC1 test]# echo ${array1[@]} 100 aaa xxxYYY [root@PC1 test]# echo ${!array1[@]} 0 1 2 [ro 阅读全文
posted @ 2025-03-08 20:40 小鲨鱼2018 阅读(19) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test]# ls a.sh [root@PC1 test]# cat a.sh #!/bin/bash echo hello world [root@PC1 test]# sh -c bash a.sh ## 更新了系统环境变量? (base) [root@PC1 t 阅读全文
posted @ 2025-03-08 10:22 小鲨鱼2018 阅读(51) 评论(0) 推荐(0)
摘要:001、 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试数据 W-URI-20 W-HYB-21 aaa fff-ddd-eee ZOM-1 ZOM-9 AWA-A-1 AWA-A-6 [root@PC1 test2]# se 阅读全文
posted @ 2025-03-06 09:10 小鲨鱼2018 阅读(14) 评论(0) 推荐(0)
摘要:Linux 中sed命令的整行替换. 001、基本用法 [root@PC1 test2]# ls a.txt [root@PC1 test2]# cat a.txt ## 测试文件 a UU i a UU i b q j c q y [root@PC1 test2]# sed '/b/ s/.*/Q 阅读全文
posted @ 2025-02-24 17:08 小鲨鱼2018 阅读(118) 评论(0) 推荐(0)
摘要:001、 Linuxbash和source命令的区别在于,当你用bash命令执行脚本时,它告诉Linux内核创建一个新的Bash进程来读取和执行脚本,将输出复制到原先的shell进程中,并显示下来. 然而source命令是一个外置的shell,它读取和评估当前shell进程中的文件。为此,脚本所做的 阅读全文
posted @ 2025-02-23 18:11 小鲨鱼2018 阅读(68) 评论(0) 推荐(0)
摘要:001、关联数组的声明 declare -A array1 002、关联数组的赋值 [root@localhost test]# declare -A array1 [root@localhost test]# array1["a"]=1000 [root@localhost test]# arra 阅读全文
posted @ 2025-02-23 15:58 小鲨鱼2018 阅读(12) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 77 下一页