随笔分类 - linux shell
摘要:001、非root用户安装、配置gsl环境变量,编译软件环境报错如下: 002、非root用户安装gsl a、下载地址 http://mirrors.ustc.edu.cn/gnu/gsl/gsl-2.5.tar.gz b、编译安装 tar -xzvf gsl-2.5.tar.gz cd gsl-2
阅读全文
摘要:001、rpm:redhat package manager: -q:query a:all rpm -qa: 列出所有的已经安装的包。 002、等价于 :yum list installed
阅读全文
摘要:001、 cc: 错误:/usr/local/lib/libgsl.a:没有那个文件或目录 002、下载:http://mirrors.ustc.edu.cn/gnu/gsl/gsl-2.5.tar.gz 003、解压: tar -xzvf gsl-2.5.tar.gz cd gsl-2.5/ ./
阅读全文
摘要:001、 tar.xz 后缀文件如何解压: tar -xvf dmd.2.111.0.linux.tar.xz ## 保留原始安装包
阅读全文
摘要:001、 删除每一行最后一个匹配的特定字符后边的部分 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 ab ad aj di ii rr [root@localhost test]# sed 's/\(
阅读全文
摘要:001、 [root@localhost test]# ls a.txt [root@localhost test]# cat a.txt ## 测试数据 ab ad aj dd ii rr [root@localhost test]# sed 's/\(.*\)a/\1Q/' a.txt ## 将
阅读全文
摘要:001、Linux中 ldconfig -p 命令 在 Linux 系统中,ldconfig -p 命令用于 列出系统中所有已知的动态库。这个命令会显示已经配置到 动态链接器缓存(ld.so.cache) 中的所有共享库。通过这个缓存,系统可以更快地找到动态库文件。
阅读全文
摘要:001、删除左侧第一个句号后边的所有内容 [root@PC1 test]# test="kk.aa.ee.ww" ## 测试变量 [root@PC1 test]# echo $test kk.aa.ee.ww [root@PC1 test]# result=${test%%.*} ## 删除左侧第一
阅读全文
摘要:001、 [b20223040323@admin2 test10]$ ls a.txt [b20223040323@admin2 test10]$ cat a.txt ## 测试数据 1.04089e-05 0.579063 1.22069e-05 1.1133e-05 0.517721 -1.10
阅读全文
摘要:shell脚本如何统计文本中特定字符连续出现的最多次数 001、 [root@PC1 test]# ls a.txt [root@PC1 test]# cat a.txt ## 测试数据 32543aa8324daaaaa889 3244aa6666 [root@PC1 test]# grep -o
阅读全文
摘要:001、问题 环境变量处理失误导致基础命令调不出来: [root@PC1 ~]# ls bash: ls: command not found... Packages providing this file are: 'coreutils-single' 'coreutils' 002、应急方法 [
阅读全文
摘要:001、问题 002、解决方法: 下载安装包: https://ctan.org/tex-archive/support/epstopdf 003、 unzip epstopdf.zip cd epstopdf/ cp epstopdf.pl epstopdf.pl_backup mv epstop
阅读全文
摘要:001、问题 (base) [root@PC1 ~]# epstopdf --version bash: epstopdf: command not found... (base) [root@PC1 ~]# epstopdf bash: epstopdf: command not found...
阅读全文
摘要: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 ## 匹
阅读全文
摘要: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
阅读全文
摘要:001、问题 基于setfacl 对特定用户开放读写权限失败 setfacl -m u:liujiaxin02:r-x $HOME; 开放了读写的权限,但是仍然显示无法读取; 002、问题原因及解决方法 开放权限的用户本人的家目录没有开放读和执行的权限,要想setfacl生效,首先开放权限用户本身应
阅读全文
摘要: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 &
阅读全文
摘要:001、 sort命令的-g选项用于按照通用数值进行排序。
阅读全文
摘要:001、问题: No match for argument: GConf2 Error: Unable to find a match: GConf2 002、解决方法: dnf install epel-release -y
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号